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

Export Policy Gateway audit logs to Azure Monitor / Log Analytics

Send Policy Gateway audit logs to Azure Monitor or Log Analytics workspaces for enterprise compliance.

Updated 2026-08-04

Send Policy Gateway audit logs into Azure Monitor / Log Analytics so security teams can run KQL queries against AI decisions.

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

{
  "destination": "azure_monitor",
  "workspace_id": "WORKSPACE_ID",
  "log_type": "PolicyGatewayAudit"
}

What gets exported

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

Export configuration

Use the Log Analytics Data Collector API with a workspace ID and shared key.

Sample Log Analytics payload

The Data Collector API accepts an array of JSON objects.

[
  {
    "TimeGenerated": "2026-01-16T18:22:11Z",
    "PolicyId": "support-guardrails",
    "Decision": "rewrite",
    "EffectiveDecision": "rewrite",
    "ReasonCode": "REWRITE",
    "PolicyUser": "user-12345",
    "ProjectId": "support-bot",
    "PolicyTarget": "support-bot",
    "RolloutMode": "enforced",
    "Enforced": true,
    "TriggeredCategories": ["self-harm/intent"],
    "AllowlistHits": ["refund policy"],
    "DenylistHits": [],
    "Model": "abliterated-model"
  }
]

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.