Skip to content

Configuration Reference

All settings are available through three layers. Higher layers override lower layers:

CLI flags > Environment variables > TOML file

TOML KeyEnv VariableCLI FlagDefaultDescription
storage.memtable_flush_threshold_mibKIFA_MEMTABLE_FLUSH_THRESHOLD_MIB--memtable-threshold-mib4Flush memtable to SSTable after N MiB. Minimum: 1.
storage.compaction_thresholdKIFA_COMPACTION_THRESHOLD--compaction-threshold4Compact after N SSTables. Minimum: 2.
storage.compaction_enabledKIFA_COMPACTION_ENABLED--no-compactiontrueEnable background compaction.
TOML KeyEnv VariableCLI FlagDefaultDescription
wal.flush_modeKIFA_FLUSH_MODE--flush-modenormalSync strategy: normal, cautious, emergency.
wal.segment_size_mibKIFA_SEGMENT_SIZE_MIB--segment-size-mib16WAL segment size in MiB. Minimum: 1. Must be 4 KiB-aligned.
TOML KeyEnv VariableCLI FlagDefaultDescription
ingester.channel_capacityKIFA_CHANNEL_CAPACITY--channel-capacity1024Internal channel buffer size. Minimum: 1.
TOML KeyEnv VariableCLI FlagDefaultDescription
sources.stdinKIFA_STDIN--stdinfalseRead from standard input.
sources.filesKIFA_FILES--fileFiles to tail. Env: comma-separated. CLI: repeatable.
sources.tcpKIFA_TCP--tcpTCP listen addresses. Env: comma-separated. CLI: repeatable.
sources.udpKIFA_UDP--udpUDP listen addresses. Env: comma-separated. CLI: repeatable.
Env VariableDescription
KIFA_DATA_DIRStorage directory. Equivalent to -d, --data-dir.
KIFA_LOGLog level filter passed to env_logger. Example: KIFA_LOG=info.