đźš§ SanctumAI is in beta. APIs may change before v1.0.
CLI Referencesanctum export

sanctum export

Export audit events to external systems.

Usage

sanctum export [OPTIONS]

Options

FlagDescriptionDefault
--format <fmt>Output format: ocsf, cef, json, csvjson
--since <time>Export events after this timestampall
--output <path>Write to file instead of stdoutstdout
--adapter <name>Stream to a configured adapternone

Formats

OCSF 1.3 (Open Cybersecurity Schema Framework)

sanctum export --format ocsf --since "2026-02-01"

Exports events in OCSF 1.3 JSON format, compatible with Amazon Security Lake, Splunk OCSF, and other OCSF-native tools.

CEF (Common Event Format)

sanctum export --format cef --output /var/log/sanctum/events.cef

For Splunk, QRadar, ArcSight, and syslog-based SIEMs.

JSON (Flat)

sanctum export --format json | jq '.[] | select(.action == "retrieve")'

CSV

sanctum export --format csv --output events.csv

Streaming to Adapters

For continuous export, configure adapters in ~/.sanctum/config.toml and use:

sanctum export --adapter splunk-prod

See the Export to SIEM guide for full adapter configuration.

Export Layer Architecture

The export layer supports pluggable adapters for: Splunk HEC, Datadog, Azure Sentinel, Google Chronicle, Elasticsearch, S3/Security Lake, Webhook, Syslog, OpenTelemetry OTLP, and local file output.

Each adapter supports batching, retry with exponential backoff, and dead-letter queues for failed deliveries. See Concepts → Audit Events for the event schema.