Skip to main content
Stream Policy Gateway policy events to Splunk via HTTP Event Collector.

Configure

In the console, add a connector with:
FieldValue
TypeSplunk HEC
URLhttps://<splunk-host>:8088/services/collector/event
TokenYour HEC token
Indexe.g. ai_audit
Source type_json

Event shape

Events are sent as HEC-formatted JSON:
{
  "time": 1745179800,
  "sourcetype": "_json",
  "index": "ai_audit",
  "event": {
    "event_id": "3d14a2b8-...",
    "event_type": "enforcement",
    "policy_id": "support-bot",
    "decision": "refuse",
    "effective_decision": "allow",
    "enforced": false,
    "rollout_mode": "shadow",
    "reason_code": "REFUSE",
    "triggered_categories": [],
    "denylist_hits": ["competitor-x"],
    "policy_target": "chat.completions",
    "project_id": "proj_support_bot",
    "model": "abliterated-model"
  }
}
See the full field list in connectors.

Verify

index=ai_audit sourcetype=_json
| stats count by decision, reason_code

Troubleshooting

  • 403 Forbidden — HEC token lacks write access to the index.
  • Batches stuck — HEC endpoint not reachable from abliteration.ai. Allowlist the egress IPs shown in the console.