dd-audit-ai-activity
Audit Trail: AI Activity Audit
MCP calls are recorded under the MCP Server category: @evt.name:"MCP Server" @asset.type:mcp @action:executed. A connection, tool call, resource read, or prompt read on the Datadog MCP server uses that event.
Changes the MCP server makes to another resource are recorded on that resource's own category with is_mcp_call:true. They are not MCP Server events, and their action is not executed.
Bits AI SRE is a separate category for Bits SRE investigations and Bits SRE tool calls (@asset.type:tool_call @action:created). Do not use it for MCP.
Datadog-managed AI agent attribution (@evt.actor.mode, Bits agent fields) is not available on GovCloud. On other sites, onboarded Datadog AI agent actions are @evt.actor.mode:*. That query is not complete. Bits SRE is tracked for most actions. Bits Chat is tracked from the full Bits Chat page, not the inline panel. Bits Security Analyst runs as autonomous and has no delegator. Bits Agent Builder is not tracked yet. Third-party agents are not distinguished from API keys, application keys, personal access tokens, or service account tokens. Some action types on a tracked agent still omit these fields.
A user's own actions are @usr.id:<USER_ID>. Actions an agent took for that user are @delegator.id:<USER_ID>, and @usr.* on those events is the agent. @delegator.name is the full name, not the email. A user's complete activity is (@usr.id:<USER_ID> OR @delegator.id:<USER_ID>).
Prerequisites
pup auth login # OAuth2 (recommended)
# or set DD_API_KEY + DD_APP_KEY with audit_logs_read scope