NewGLM-5.3 is live as Abliterated Large v2.Try it now
Compliance

Export Policy Gateway audit logs to Datadog Logs

Send Policy Gateway audit logs to Datadog Logs for SIEM search, dashboards, and retention.

Updated 2026-08-04

Route Policy Gateway audit logs into Datadog Logs so security teams can monitor AI decisions in their existing dashboards.

Exports are available on enterprise plans; contact [email protected] to enable a log export sink.

{
  "destination": "datadog_logs",
  "endpoint": "https://http-intake.logs.datadoghq.com/api/v2/logs",
  "api_key": "$DD_API_KEY",
  "service": "policy-gateway",
  "ddsource": "policy-gateway",
  "tags": ["env:prod", "team:platform"]
}

What gets exported

Policy Gateway audit logs include consistent decision metadata for compliance reviews.

Export configuration

Use the Datadog logs HTTP intake endpoint with an API key.

Sample Datadog log payload

Datadog logs accept JSON objects with a message plus structured fields.

{
  "message": "policy decision: rewrite",
  "service": "policy-gateway",
  "ddsource": "policy-gateway",
  "ddtags": "env:prod,team:platform,project:support-bot",
  "policy": {
    "policy_id": "support-guardrails",
    "decision": "rewrite",
    "effective_decision": "rewrite",
    "reason_code": "REWRITE",
    "policy_user": "user-12345",
    "project_id": "support-bot",
    "policy_target": "support-bot",
    "rollout_mode": "enforced",
    "enforced": true,
    "triggered_categories": ["self-harm/intent"],
    "allowlist_hits": ["refund policy"],
    "denylist_hits": [],
    "model": "abliterated-model",
    "created_at": "2026-01-16T18:22:11Z"
  }
}

Verification checklist

FAQ

Frequently asked questions.

How do I fix a 401 Unauthorized error from abliteration.ai?

Check that your API key is set and sent as a Bearer token.

How do I fix a 404 Not Found error from abliteration.ai?

Make sure the base URL ends with /v1 and you call /chat/completions.

How do I fix a 400 Bad Request error from abliteration.ai?

Verify the model id and that messages are an array of { role, content } objects.

How do I fix a 429 Rate limit error from abliteration.ai?

Back off and retry. Use the Retry-After header for pacing.