Exporting Data
The export command writes entries to a file. Writes are atomic: partial exports are never visible at the output path.
Export the last 24 hours as JSON:
kifa export -d ./data --from 24h --format json -o transactions.jsonExport a specific time range as CSV:
kifa export -d ./data --from "2026-01-01" --to "2026-02-01" --format csv -o audit.csvOptions
Section titled “Options”| Flag | Description | Default |
|---|---|---|
-o, --output | Output file path | Required |
--format | Output format (text, json, csv, hex) | json |
--from | Filter from time | |
--to | Filter until time | |
--limit | Maximum entries to export | 1000 |
The default format for export is json, unlike query which defaults to text.
Atomicity
Section titled “Atomicity”Kifa writes to a temporary file and renames it to the target path on completion. If the process is interrupted, no partial file remains at the output path. The temporary file is cleaned up on failure.
Querying Logs Interactive query with stdout output.
CLI Reference Complete flag reference for all commands.