Ingestion
kifa ingest reads log lines from one or more sources and persists them to disk. Each line becomes one entry in the write-ahead log.
Input Sources
Section titled “Input Sources”| Flag | Description | Example |
|---|---|---|
--stdin | Read from standard input | echo "log" | kifa ingest --stdin -d ./data |
--file | Tail a log file (repeatable) | --file /var/log/app.log |
--tcp | Listen on TCP address (repeatable) | --tcp 127.0.0.1:5514 |
--udp | Listen on UDP address (repeatable) | --udp 0.0.0.0:5515 |
At least one source is required. Sources can be combined.
Examples
Section titled “Examples”Pipe from another process:
my-pos-app | kifa ingest --stdin -d /var/lib/kifaTail multiple log files:
kifa ingest \ --file /var/log/transactions.log \ --file /var/log/payments.log \ -d /var/lib/kifaTCP and UDP ingestion:
kifa ingest --tcp 127.0.0.1:5514 --udp 0.0.0.0:5515 -d /var/lib/kifaAll sources at once:
kifa ingest \ --stdin \ --file /var/log/app.log \ --tcp 127.0.0.1:5514 \ -d /var/lib/kifaShutdown
Section titled “Shutdown”Send SIGINT (Ctrl+C) or SIGTERM for graceful shutdown. Kifa flushes pending data before exiting.
A second SIGINT forces immediate exit with code 130.
Choosing a Flush Mode Control durability guarantees per write.
Deployment Systemd integration and signal handling.