Skip to main content

Audit Log

The audit log is an immutable record of every tool call your agents make — allowed and denied.

What is logged

Every call through AgenticGuard creates an audit event containing:

FieldDescription
timestampUTC timestamp of the call
agent_idWhich agent made the call
tool_nameTarget tool (derived from hostname)
actionHTTP method or action name
tool_urlFull target URL
decisionallowed or denied
reasoningAgent-provided reasoning (if any)
task_idTask or workflow identifier (if provided)
latency_msRound-trip time in milliseconds
status_codeHTTP status from upstream (for allowed calls)
policy_messageDenial reason (for denied calls)

Viewing the audit log

The Audit Log tab in the dashboard shows a paginated, filterable log. Filters available:

  • Agent
  • Decision (allowed / denied)
  • Tool name
  • Date range

Exporting

Download the audit log as a PDF report from the dashboard:

  1. Go to Audit Log
  2. Set your date range
  3. Click Export PDF

The report includes a summary table, per-agent breakdown, and a full event listing.

Via API

# Get recent audit events
curl -H "Authorization: Bearer $JWT" \
"https://api.agentic-guard.com/audit?limit=50"

# Filter by agent
curl -H "Authorization: Bearer $JWT" \
"https://api.agentic-guard.com/audit?agent_id=uuid&limit=100"

Retention

Audit events are retained indefinitely. There is no delete API — the log is append-only by design.

Using audit data

The audit log helps you:

  • Understand agent behavior before writing policies
  • Detect anomalies — unusual tools, unexpected volumes, denied patterns
  • Debug issues — see exactly what URL was called and what came back
  • Compliance evidence — exportable PDF for security reviews