Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Index Policy Gateway events into Elasticsearch or Elastic Cloud via the Bulk API.
https://<cluster>:9200
ai-audit
_bulk
{"index":{"_index":"ai-audit"}} {"@timestamp":"2026-04-20T18:30:00Z","event_id":"3d14a2b8-...","event_type":"enforcement","policy_id":"support-bot","decision":"refuse","effective_decision":"allow","enforced":false,"rollout_mode":"shadow","reason_code":"REFUSE","policy_target":"chat.completions","project_id":"proj_support_bot","model":"abliterated-model","denylist_hits":["competitor-x"]}
{ "mappings": { "properties": { "@timestamp": { "type": "date" }, "event_id": { "type": "keyword" }, "event_type": { "type": "keyword" }, "policy_id": { "type": "keyword" }, "decision": { "type": "keyword" }, "effective_decision": { "type": "keyword" }, "enforced": { "type": "boolean" }, "rollout_mode": { "type": "keyword" }, "reason_code": { "type": "keyword" }, "policy_target": { "type": "keyword" }, "project_id": { "type": "keyword" }, "model": { "type": "keyword" }, "triggered_categories": { "type": "keyword" }, "allowlist_hits": { "type": "keyword" }, "denylist_hits": { "type": "keyword" } } } }
GET ai-audit/_search { "query": { "term": { "decision": "refuse" } } }