autonomy audit export¶
Export retained audit records as JSON or CSV
Synopsis¶
Reads and filters audit records from the local audit store and writes them to a file in the requested format.
When –pg-url is set (or AUTONOMY_AUDIT_PG_URL is in the environment), records are read from the PostgreSQL audit_events table. Otherwise the local JSONL file store is used (–audit-dir).
Filters are the same as ‘audit query’. –output (file path) is required.
Formats: json pretty-printed JSON array (default) csv RFC 4180 CSV with header row: timestamp, event_name, category, action, outcome, actor, resource_type, resource, source, fields_json
Usage¶
autonomy audit export [flags]
Options¶
--actor string filter by operator identity
--audit-dir string audit storage directory (default: AUTONOMY_AUDIT_DIR or XDG state path)
--category string audit domain filter: rollout | ha | relay | cert | auth | system | rollback
--end-time string inclusive RFC3339 end time
--event-type string exact event name filter (e.g. "rollout.plan.created")
--format string export format: "json" or "csv" (default "json")
--outcome string result filter: success | failure | denied | pending
--output string output file path (required)
--pg-url string PostgreSQL URL for DB-backed audit query (env: AUTONOMY_AUDIT_PG_URL)
--source string component filter: orchestrator | edge | cli
--start-time string inclusive RFC3339 start time
See also¶
autonomy audit— Query and export retained audit records