Learn · Cloud DFIR
What ChatGPT, Claude, Copilot and Gemini log for an investigation
If an incident runs through an AI assistant my organization uses, what evidence will exist, and for how long?
On this page
The short answer, by platform
Scroll horizontally on narrow screens.
Platform | Where the evidence is | Default retention | Prompt and response content | Agent activity |
|---|---|---|---|---|
ChatGPT Enterprise and Edu | Compliance Logs Platform | 30 days | Yes, in conversation logs | ChatGPT Work prompts and agent responses for supported cloud activity |
OpenAI API Platform | Admin and Audit Logs API, off until an owner enables it | No fixed retention, best effort | No, metadata only | Not in audit logs |
Claude Enterprise | Compliance API and audit log export | Activity feed: 6 years from enablement. Local session transcripts: 6 years by default (30 days with HIPAA readiness). Export: 180 days | Yes, through the Compliance API. The export holds IDs only | Cowork and Claude Code sessions in the Compliance API, with exclusions. OpenTelemetry if configured |
Claude Team | No audit log or Compliance API. OpenTelemetry for Cowork and Claude Code | Whatever your collector keeps | Only through OpenTelemetry, when content capture is on | OpenTelemetry only |
Microsoft 365 Copilot | Purview audit log (CopilotInteraction) | 180 days on Audit Standard and Premium. Longer only with a custom retention policy | Not in the audit record. Stored in the user's mailbox, searchable through eDiscovery | Agent ID and name on the audit record |
Gemini in Google Workspace | Admin console audit and the Reports API | 180 days rolling, from 20 June 2025 | No, metadata only | Whether an agent performed the action, with agent ID and name. User approval on the Gemini App log |
ChatGPT
Enterprise and Edu workspaces have the Compliance Logs Platform, which retains data for 30 days. Anything older has to be pulled continuously into your own store before it ages out. Our OpenAI research puts it plainly for individual subscriptions: there is no logging available.
The API Platform is separate. Its audit logs record administrative events such as key creation and user changes, carry no customer content, and must be enabled by an organization owner before an incident to exist at all.
Claude
Only the Primary Owner can enable the Claude Enterprise Compliance API. Its Activity Feed retains six years of member activity starting at enablement. Separate endpoints return retained chats and supported Cowork and Claude Code transcripts. The 180-day audit CSV identifies chats and projects by ID and omits their titles and content.
Cowork and Claude Code can stream OpenTelemetry to a collector configured before the activity you need to investigate. Prompt capture is opt-in for current Claude Code and supported Cowork desktop sessions. Cowork sessions started on the web or mobile export metadata only. Our Claude research covers what investigators can collect.
The Compliance API excludes ordinary Claude API prompts and responses. To retain them, log them in the calling application or enable Full content in Anthropic's beta OpenTelemetry tracing for the API or SDK.
Microsoft 365 Copilot
Copilot automatically writes CopilotInteraction events to Microsoft Purview when tenant auditing is on. Verify that setting. We have investigated incidents where auditing was disabled. The records identify the user and app and can show which resources Copilot accessed, their sensitivity labels, and any detected jailbreak or cross-prompt injection attempt. Copilot audit records default to 180 days. For the prompt and response text, search the user's Exchange Online mailbox with Purview eDiscovery, subject to the tenant's licensing and retention policies.
Gemini
Google Workspace retains Gemini audit events for six months. Find them in the Admin console or query gemini_in_workspace_apps in the Reports API for the latest 180 days. Events can show the action, app, feature, device and whether an agent acted. For prompt and response text, Google Vault can export supported Workspace conversations created while conversation history was on.
On Google Cloud, Admin Activity logging is always on. To identify the calling user or service account and the target model for Gemini requests, enable DATA_READ audit logging. Express-mode API keys produce no customer-accessible DATA_READ records. Capturing prompts and responses requires separate request-response logging to BigQuery.
What you will still be missing
The AI platform usually proves that a tool or agent was invoked. It rarely proves what happened in the systems the agent touched. When an agent reads a mailbox, calls an API or edits files, the payload that matters is in that system's own logs, in endpoint telemetry, or in network records. Plan for that before an incident: decide which of those sources you will need and confirm they are retained.
Related
- Frontier Forensics: OpenAI
- Could You Investigate Misuse of Claude in Your Own Environment?
- Acquiring the Microsoft 365 Unified Audit Log
Sources
- OpenAI: Compliance Platform for Enterprise customers; Admin and Audit Logs API
- Anthropic: Access audit logs; Compliance API; Compliance FAQ; Compliance activity feed; Cowork on Team and Enterprise; Monitor Cowork with OpenTelemetry; Claude Code monitoring
- Microsoft: Audit logs for Copilot and AI apps; Search Copilot data in eDiscovery; Auditing solutions overview
- Google: Gemini for Workspace log events; Data retention and lag times; Request-response logging