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:

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

Seats and access

Content and instructions

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.

MCP registry

Spend

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

GitHub Enterprise audit log filtered by action:copilot showing copilot.memory_created and copilot.agent_merge_pr_enabled events
Copilot events in the enterprise audit log. Screenshot from our own GitHub Enterprise, November 2026; user, repository and location details redacted.

How to search Copilot events

In your enterprise, go to Settings, then Audit log. Three searches cover most needs:

Agentic events carry extra fields, documented in Audit log events for agents:

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:

  1. In the repository or organization settings, open Copilot (then Content exclusion at the organization level).
  2. Scroll to the bottom to see who last changed the settings and when.
  3. Click the time of the change. This opens the audit log filtered to copilot.content_exclusion_changed.
  4. 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:

Operational details that bite people:

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:

  1. Any copilot.content_exclusion_changed that removes a path. Route it to the repository owner and security.
  2. copilot.enterprise_enablement_changed or cfb_enterprise_org_enablement_changed. These should be rare and tied to a change ticket.
  3. mcp_registry.settings_update, and any allowlist_add_server. A new MCP server is a new data path.
  4. copilot.swe_agent_firewall_allowlist_updated and swe_agent_mcp_config_updated. These widen what the cloud agent can reach.
  5. copilot.clickwrap_save_event. Someone accepted terms, possibly preview terms, on the organization's behalf.
  6. Seat assignments outside your provisioning path. If seats should only come from IdP-synced teams, alert on direct assignments.
  7. 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.