Skip to main content
In an enterprise environment nearly every administrative and user action is recorded. GitHub Enterprise provides a centralized Audit log that surfaces these events across the enterprise and its organizations, with detailed metadata for each action. Use the Audit log to investigate changes, review security events, and build timelines of activity. Below is the Audit log view in the GitHub Enterprise UI. Each row summarizes an action; expanding any entry reveals metadata such as timestamp, action, actor, actor ID, bot status, enterprise and org IDs, request ID, user agent, and more.
A screenshot of a GitHub Enterprise "Audit log" page showing recent events and detailed metadata for actions (timestamps, actor, business, request_id, and user agent). The left sidebar lists settings sections while the main pane displays multiple audit entries with expandable details.
How to read entries
  • The primary line describes the action (for example, “Alice admin has added Support entitlement” or “removed a member from the organization”).
  • Expand an entry to see the structured metadata for that event.
  • Use UI filters to narrow results by action type, actor, date range, country, token, and more.
Filtering audit logs
  • Use the built-in filters in the Audit log UI to focus on specific event types or actors.
  • Fielded queries let you craft precise searches. For example, to list repositories created after a specific date:
  • Combine filters to narrow results further (for example, a particular actor in a date range).
Example event details Below is a typical metadata record for a repository creation event as displayed by the Audit log:
Filtering security-related events Audit logs are particularly valuable for tracking security-sensitive actions (such as protected-branch policy overrides). Examples:
Common filters reference Accessing and exporting audit logs
  • Use the Audit log UI for interactive searches and quick investigations.
  • For automated analysis or long-term retention, retrieve audit events programmatically using GitHub’s REST API or configure log streaming to forward events to external log-management systems.
  • Exports and streaming are useful for SIEM ingestion, compliance archives, or custom alerting.
Only enterprise or org administrators with the correct permissions can view or export Audit log data. Ensure you have appropriate authorization before attempting to access or forward audit events.
Useful links and references
You can query audit logs via the REST API and configure log streaming to forward events to external log management tools for long-term analysis and alerting.

Watch Video