Glossary security/
What is an audit log for AI agents?
An audit log is a chronological, tamper-resistant record of system activity; for AI agents it captures each tool call with the identity behind it, its arguments, the policy decision and the outcome.
Also called: audit trail
{
"timestamp": "2026-12-06T14:03:22Z",
"agent_id": "pr-review-agent",
"session_id": "b6f2c9",
"user_identity": "alice@example.com",
"tool_invoked": "github.create_pull_request",
"parameters_used": { "repo": "web", "base": "main" },
"response_summary": "PR #482 opened"
}
The field names come from OWASP’s MCP08:2025 entry, Lack of Audit and Telemetry, which calls for machine-readable records (JSON, CEF or OpenTelemetry) with a timestamp, agent and session IDs, the tool and its parameters, a response summary and the user identity where one applies, with sensitive fields masked and storage made tamper-evident through hashing and append-only media.
In NIST’s glossary an audit log is “a chronological record of system activities, including records of system accesses and operations performed in a given period.” On the MCP side, the 2026-07-28 tools spec tells clients to “Log tool usage for audit purposes,” and the security guidance asks for scope elevation events to be recorded with correlation IDs.
Debug logs answer “why did this break?” An audit log answers “who did this, and was it allowed?” It only works if every entry names a real identity, which token passthrough and shared keys both break. Don’t confuse either with MCP’s built-in logging messages, which spec version 2026-07-28 deprecates; servers now write operational logs to stderr or emit OpenTelemetry.
See also: SIEM export · Agent identity · Security checklist for shipping an MCP server · Shadow MCP servers
Related terms
Agent identity, Shadow MCP, SIEM export, Token passthrough
Guides that cover Audit log
Sources
Changelog
- First published.
Cite this page
Agents for Devs. "What is an audit log for AI agents?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/audit-log - Page: https://agentsfordevs.com/glossary/audit-log
- Markdown version: https://agentsfordevs.com/glossary/audit-log.md
- Reuse: quote or summarize with a link to this page. Reuse terms