Skip to main content
The audit log is your authoritative security footprint. How you collect, retain, and search that data determines whether it will be useful during an incident response or compliance review. Without streaming, your audit log is like a single CCTV camera that records only to a local hard drive. If an insider compromises an admin account, they can delete local files and the evidence may be lost:
When you enable audit log streaming, the logs are forwarded in real time to a tamper-evident, off-site storage or SIEM. Think of it as a casino’s security system that broadcasts every camera feed to a secure, external location. Even if an attacker destroys a local host, the events are already preserved elsewhere.
An infographic titled "With Streaming – Already Recorded Elsewhere" showing a "Streaming on" badge and an audit log icon with the caption "Like a casino’s real-time security system." Below it are icons illustrating that every camera action is broadcast instantly to an off-site secure location.
Why stream audit logs?
  • Ensures tamper-evidence and durable retention.
  • Supports faster incident response by making logs immediately available in a central location.
  • Enables long-term retention and compliance with regulatory frameworks.
Supported enterprise-level audit log destinations Streaming is typically required by compliance frameworks such as SOC 2, FedRAMP, and ISO/IEC 27001 because it provides tamper evidence and off-site retention. Audit log search: quick examples and patterns GitHub’s audit log search syntax is consistent across the UI and the enterprise audit log API, which makes scripted investigations straightforward. Use tight filters (time range, actor:, repo:) to reduce result volume. Example: find every repository deletion
Sample results (illustrative)
Example: find a policy change by a specific admin
These queries work identically whether entered in the audit log UI or executed programmatically via the enterprise audit log API. See GitHub’s audit log REST API documentation for the endpoint and response formats.
Scope your queries by time range and additional filters (for example actor: or repo:) to reduce noise and speed up investigations. Use saved queries or scripted API calls for repeatable incident workflows.
A critical scoping rule: user login events Be aware of one important scoping rule: user login events (user.login) are only recorded in the enterprise audit log. Organization-level audit logs show actions performed inside that organization, but they do not include global login events. Only enterprise owners can see user.login entries.
A slide titled "The Scoping Rule You Must Memorize" comparing two boxes: the Enterprise audit log (shows user.login and actions in every organization) and the Organization audit log (does not show user.login, only actions inside that organization, and doesn't show whether/when a user logged in).
Organization admins cannot see global user.login events. If you need visibility into logins for forensic purposes, ensure enterprise-level audit log streaming is enabled and that enterprise owners delegate access appropriately.
Operational and exam-focused takeaways
  • Audit log streaming is configured at the enterprise level; enable it to ensure durable, tamper-evident storage.
  • Supported streaming destinations: Amazon S3, Azure Event Hubs, Google Cloud Logging, Splunk, Datadog.
  • Use audit log search syntax (for example action:repo.destroy or actor:jsmith action:business.set_actions_policy) either in the UI or via the enterprise audit log API.
  • User login events (user.login) appear only in the enterprise audit log — organization logs do not include them.
  • Always scope queries by time range and relevant filters to improve performance and accuracy.
Links and references

Watch Video