Export audit logs to SIEM/SOAR (Splunk, Elastic, Datadog) with scheduling, redaction, and compliance formatting.
cortex plugin install marketplace:cortex-plugin-audit-trail
cortex plugin install github:CortexPrism/cortex-plugin-audit-trail
cortex plugin install ./manifest.jsonExport audit logs to a destination.
Parameters:
destination(string, required) — One of: splunk, elastic, datadog, file, s3time_range(string, default: "24h")format(string, default: "json") — json, cef, leef, csvfilter(string, optional) — JSON query filter
Schedule recurring exports or manage schedules.
Parameters:
action(string, required) — create, list, deletedestination(string, optional) — Required for createinterval(string, optional) — hourly, daily, weeklyschedule_id(string, optional) — Required for delete
Redact sensitive fields from log data.
Parameters:
data(string, required) — JSON log dataredaction_rules(string, optional) — JSON array of field paths
Format logs for compliance frameworks.
Parameters:
data(string, required) — JSON log dataframework(string, required) — soc2, hipaa, gdpr, pci_dss
Get audit trail statistics.
Parameters:
time_range(string, default: "30d")
- Splunk HEC URL (text) — HEC endpoint
- Splunk HEC Token (secret) — Auth token
- Elastic URL (text) — Cluster URL
- Elastic API Key (secret) — Auth key
- Datadog API Key (secret) — Ingestion key
- S3 Bucket (text) — Bucket name
- Default Format (select, default: json) — json/cef/leef/csv
- Default Interval (select, default: daily) — hourly/daily/weekly
tools— Audit export and management toolsevents:listener— Listens to Cortex events for audit trailnetwork:fetch— Sends exports to external SIEM/SOAR endpoints
deno task test
deno task validateMIT
This plugin subscribes to the Cortex event bus for real-time processing:
| Event | Purpose |
|---|---|
| Capture tool execution for audit logs | |
| Log session start events | |
| Log session termination events |