---
title: What is an audit log for AI agents?
type: glossary
url: https://agentsfordevs.com/glossary/audit-log
markdown: https://agentsfordevs.com/glossary/audit-log.md
publisher: Agents for Devs
author: Agents for Devs desk
reviewed_by: Agents for Devs desk
published: 2026-12-06
updated: 2026-12-06
license: https://agentsfordevs.com/reuse
citation: Agents for Devs. "What is an audit log for AI agents?." Published Dec 6, 2026. https://agentsfordevs.com/glossary/audit-log
attribution: Credit Agents for Devs and link to https://agentsfordevs.com/glossary/audit-log
term: Audit log
aliases:
  - audit trail
---

# 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.

**Definition:** 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.

```json
{
  "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](/glossary/siem-export) · [Agent identity](/glossary/agent-identity) · [Security checklist for shipping an MCP server](/guides/mcp-server-security-checklist) · [Shadow MCP servers](/guides/shadow-mcp-servers)

## Sources

1. [audit log (Glossary), NIST Computer Security Resource Center](https://csrc.nist.gov/glossary/term/audit_log)
2. [MCP08:2025 Lack of Audit and Telemetry (OWASP MCP Top 10), OWASP](https://github.com/OWASP/www-project-mcp-top-10/blob/165fe0f78ef104459237b4a8e0f6e78db9b02391/2025/MCP08-2025%E2%80%93Lack-of-Audit-and-Telemetry.md)
3. [Tools (MCP specification version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/specification/2026-07-28/server/tools)
4. [Security Best Practices (version 2026-07-28), Model Context Protocol](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices)
5. [Architecture overview, Model Context Protocol](https://modelcontextprotocol.io/docs/learn/architecture)

## Changelog

- 2026-12-06: 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: https://agentsfordevs.com/glossary/audit-log.md
- Reuse: quote or summarize with a link to the page. Terms: https://agentsfordevs.com/reuse
