Skip to content

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:

Terminal
kifa export -d ./data --from 24h --format json -o transactions.json

Export a specific time range as CSV:

Terminal
kifa export -d ./data --from "2026-01-01" --to "2026-02-01" --format csv -o audit.csv
FlagDescriptionDefault
-o, --outputOutput file pathRequired
--formatOutput format (text, json, csv, hex)json
--fromFilter from time
--toFilter until time
--limitMaximum entries to export1000

The default format for export is json, unlike query which defaults to text.

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.