The GitHub audit log tells you who changed Copilot: who turned it on, who got a seat, who edited content exclusions, and what an agent did on GitHub. It doesn't tell you what developers asked Copilot in their editor. Most audit gaps we find come from teams assuming it does.
This guide covers which Copilot events exist, how to search them, how to review content exclusion changes, and how to stream and alert on them. Everything here is checked against GitHub's documentation as of November 14, 2026.
What the audit log covers, and what it doesn't
According to GitHub's Copilot audit log docs, the audit log records:
- Changes to your Copilot plan, including settings, policies, and users gaining or losing a licence
- Agent activity on the GitHub website
It does not include client session data, such as the prompts a user sends to Copilot locally. GitHub says that needs a custom solution and gives the example of hooks that forward Copilot CLI events to your own logging service.
Retention is 180 days. Anything you need longer, such as evidence for an annual audit or a records schedule, has to be streamed out.
The Copilot audit log events, grouped
These are the Copilot-related events listed in GitHub's enterprise and organization event references. Some appear only in the organization log.
Enablement and policy
copilot.enterprise_enablement_changed: Copilot enabled or disabled at the enterprise level. Recordsprevious_valueandcurrent_value.copilot.cfb_enterprise_org_enablement_changed: enterprise policy changed to allow all organizations, none, or selected ones.copilot.cfb_enterprise_settings_changedandcopilot.cfb_org_settings_changed: Copilot feature settings changed at the enterprise or organization level.copilot.plan_changedandcopilot.plan_downgrade_scheduled: plan changes.copilot.clickwrap_save_event: someone accepted the Copilot Product Terms or Pre-Release Preview Terms. Legal teams care about this one.
Seats and access
copilot.cfb_seat_added,cfb_seat_assignment_created,cfb_seat_assignment_unassigned,cfb_seat_cancelledand related events cover the seat lifecycle.copilot.cfb_seat_management_changed: an organization switched between all members, selected members or teams, and disabled.enterprise_team.copilot_assignmentandenterprise_team.copilot_unassignment: licences assigned to enterprise teams.copilot.access_revoked: access ended because of the subscription, billing, or suspension.
Content and instructions
copilot.content_exclusion_changed: excluded paths updated. Recordsexcluded_pathsafter the change.copilot.custom_instructions_createdandcopilot.custom_instructions_updated(organization log): organization custom instructions changed. Records the instructions.copilot.code_review_organization_settings_updatedandcopilot.code_review_repository_settings_updated(organization log): Copilot code review settings changed.copilot.memory_user_opt_out: a user opted out of Copilot Memory.
Cloud agent
These still use the older internal name. Event descriptions say "Copilot coding agent" and the prefix is swe_agent, though the product is now Copilot cloud agent.
copilot.swe_agent_repo_enabled,swe_agent_repo_disabledandswe_agent_repo_enablement_updated: which repositories the agent can work in.copilot.swe_agent_firewall_allowlist_updated: the agent's firewall allowlist changed.copilot.swe_agent_mcp_config_updated: a repository's MCP configuration for the agent changed. Recordsnew_config.
MCP registry
mcp_registry.settings_update: the MCP policy changed, includingblock_local_servers.mcp_registry.allowlist_create,allowlist_add_server,allowlist_remove_server,allowlist_assignand related events cover the allowlist lifecycle. Our MCP server policy guide explains the allowlists themselves.
Spend
billing.budget_create,billing.budget_updateandbilling.budget_delete: budget changes.billing.overage_policy_updated: the paid usage policy changed.
One gap worth knowing: GitHub's reference doesn't list detail fields for cfb_enterprise_settings_changed or cfb_org_settings_changed. You'll know a setting changed and who changed it, but you may not be able to tell which one from the event alone. That's why we pair the audit log with a configuration snapshot (more below).

How to search Copilot events
In your enterprise, go to Settings, then Audit log. Three searches cover most needs:
action:copilotreturns every event related to your Copilot plan.action:copilot.cfb_seat_assignment_creatednarrows the results to one event type.actor:Copilotreturns agent activity: pull requests created, pushes and so on.
Agentic events carry extra fields, documented in Audit log events for agents:
actor_is_agent, which is always true for agent eventsagent_session_id, which links the event to a specific sessionuser, the person who started it
The session ID is what lets you go from "an agent pushed this" to the session log that explains why.
For scripted checks, the enterprise audit log REST endpoint, GET /enterprises/{enterprise}/audit-log, takes the same search phrase. It requires an enterprise admin token (classic personal access token or OAuth app with read:audit_log) and is rate limited to 1,750 queries per hour.
Reviewing content exclusion changes
Content exclusion changes deserve their own review step. A removed path silently widens what Copilot can read. GitHub documents a direct route in Reviewing changes to content exclusions:
- In the repository or organization settings, open Copilot (then Content exclusion at the organization level).
- Scroll to the bottom to see who last changed the settings and when.
- Click the time of the change. This opens the audit log filtered to
copilot.content_exclusion_changed. - Open the entry's details and read
excluded_paths. If it's truncated, hover to see the full value. This is the configuration after the change.
Because the event stores the after-state only, you get the diff by comparing it with the previous event. In practice, we have the SIEM keep the last known value per repository and alert on any removal. Our content exclusion guide explains what exclusions do and don't protect.
Streaming the audit log
Streaming is how you get past 180 days and into alerting. GitHub's streaming docs list these destinations:
- Amazon S3
- Azure Blob Storage
- Azure Event Hubs
- Datadog
- Google Cloud Storage
- Splunk
- Microsoft Purview, for Copilot agent session events only
Operational details that bite people:
- A paused stream buffers seven days of events. After three weeks paused, it starts fresh and the gap is lost.
- A health check runs every 24 hours and emails enterprise owners about misconfigured streams. Fix them within six days or events are dropped.
- Delivery is at-least-once, so expect occasional duplicates and deduplicate downstream.
- On GHE.com, S3 with OIDC isn't available, and Event Hubs isn't supported with IP firewall rules enabled.
Copilot agent session events (public preview)
A separate option, Copilot Usage Records Streaming, is in public preview for EMU enterprises and GHE.com. You enable it under AI controls, and it sends Copilot usage records to your stream. Each record includes the request or response body, truncated at 1 MB. That fills the prompt gap from earlier, but it also means your SIEM now holds source code and prompts. Classify and secure that index accordingly.
For editor and CLI sessions, GitHub documents OpenTelemetry export configured in enterprise managed settings. Every capture class defaults to off. The identity class attributes activity to users without collecting prompts. Enable content classes only for a defined investigation need.
Alerts worth building
These are the rules we start with. They're our recommendations, not GitHub defaults:
- Any
copilot.content_exclusion_changedthat removes a path. Route it to the repository owner and security. copilot.enterprise_enablement_changedorcfb_enterprise_org_enablement_changed. These should be rare and tied to a change ticket.mcp_registry.settings_update, and anyallowlist_add_server. A new MCP server is a new data path.copilot.swe_agent_firewall_allowlist_updatedandswe_agent_mcp_config_updated. These widen what the cloud agent can reach.copilot.clickwrap_save_event. Someone accepted terms, possibly preview terms, on the organization's behalf.- Seat assignments outside your provisioning path. If seats should only come from IdP-synced teams, alert on direct assignments.
- Budget changes and overage policy changes. Finance will ask eventually.
Close the "which setting changed" gap with config as code
Because settings-change events don't always say which setting changed, audit events alone make a weak control. The stronger pattern is to keep the intended configuration in a repository, compare the live state with it on a schedule, and use the audit log to see who caused the drift.
We use the same approach for repository settings with GitHub Safe Settings. For Copilot, that means a scheduled job that reads your Copilot policies, content exclusions and MCP allowlists through the API and opens an issue when they differ from the declared state.
Common questions
Can the audit log show what a developer asked Copilot?
Not on its own. GitHub states that client session data isn't included. Usage records streaming (preview, EMU and GHE.com only) or OpenTelemetry capture can provide it, with obvious privacy implications.
How do I find everything the cloud agent did in a repository?
Search actor:Copilot with a repository filter, then use agent_session_id to open the matching session log. Agent commits also link to their session logs.
If your audit trail for Copilot is currently "the default 180 days," we can help you design the stream, the alerts and the drift check as part of a governed Copilot rollout.
