Skip to content

Configuration

Yōzefu uses a workspace directory to store its configuration file, logs, and other data. By default, this directory is located at yozf config get dir. You can change the workspace directory using the --config-dir command-line option or the YOZEFU_CONFIG_DIR environment variable.

DefaultCLI optionEnv variableConfiguration file
Workspace~/.config/io.maif.yozefu/--config-dirYOZEFU_CONFIG_DIRNo
Configuration${workspace}/config.json--config-fileN/ANo
Logs${workspace}/application.log--log-fileYOZEFU_LOG_FILE/log_file
Export folder$PWD/export-{datetime-now}.json--outputNo/export_directory

config.json file

Yōzefu uses a JSON configuration file to set various options. By default, it looks for a file named config.json in the workspace directory.

KeyTypeExamples
default_url_template
Placeholder URL to open a Kafka record in the browser.
Stringhttp://localhost/cluster/{topic}/{partition}/{offset}
initial_query
Initial search query when starting the UI.
Stringfrom end - 10
theme
TUI theme.
Stringlight
highlighter_theme
Theme for syntax highlighting.
StringInspiredGitHub
clusters
Kafka properties per cluster.
Object
consumer
Default configuration for the Kafka consumer.
Object{ buffer_capacity: 1000, timeout_in_ms: 10 }
default_kafka_config
Default Kafka properties inherited by every cluster.
Map<String, String>{"fetch.min.bytes": "10000"}
history
Past search queries.
Array<string>["from end - 10"]
show_shortcuts
Whether to show shortcuts.
Booleantrue
export_directory
Directory for exports.
String./yozefu-exports
log_file
File path to write logs.
String/path/to/log/file.log
timestamp_format
Display timestamps as date-time or relative.
DateTime or AgoDateTime

Kafka cluster

KeyTypeExamples
url_template
Placeholder URL to open a Kafka record in the browser.
Stringhttp://dev/cluster/{topic}/{partition}/{offset}
schema_registry
Schema registry settings for this cluster.
Object{}
kafka
Kafka consumer properties for this cluster
Map<String, String>{}
consumer
configuration for the Yozefu consumer.
Object{ buffer_capacity: 10, timeout_in_ms: 1 }

For more details, see the configuration json schema.

MAIF logo
OSS by MAIF, released under Apache License, Version 2.0