Skip to content

Fix audit log streaming filename format - #45787

Open
kakakakakku wants to merge 1 commit into
github:mainfrom
kakakakakku:audit-logs
Open

Fix audit log streaming filename format#45787
kakakakakku wants to merge 1 commit into
github:mainfrom
kakakakakku:audit-logs

Conversation

@kakakakakku

@kakakakakku kakakakakku commented Sep 7, 2026

Copy link
Copy Markdown

Why:

Closes: N/A

The documented filename format for streamed audit logs is incorrect in two ways:

  1. It is missing the day (DD) segment. Actual objects are written under a five-level year/month/day/hour/minute prefix.
  2. The actual file extension is .json.log.gz, not .json.gz.

I verified this with GitHub Enterprise Cloud audit log streaming to Amazon S3 (September 2026).

Note: I have not been able to verify the behavior on GitHub Enterprise Server or with other streaming destinations, so please let me know if a version- or provider-specific distinction is needed👍

What's being changed (if available, include any code snippets, screenshots, or gifs):

This corrects the filename format described in Streaming the audit log for your enterprise.

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

Thank you😀

Copilot AI balanced review requested due to automatic review settings September 7, 2026 15:38
@github-actions github-actions Bot added the triage Do not begin working on this issue until triaged by the team label Sep 7, 2026
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise.md ghec
ghes@ 3.22 3.21 3.20 3.19 3.18 3.17
ghec
ghes@ 3.22 3.21 3.20 3.19 3.18 3.17

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The format was verified only for Enterprise Cloud with Amazon S3 but is documented as universal.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Corrects the documented audit-log filename format.

Changes:

  • Adds the missing day path segment.
  • Changes the extension to .json.log.gz.
File summaries
File Description
streaming-the-audit-log-for-your-enterprise.md Updates the streamed audit-log filename format.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

You can set up{% ifversion pause-audit-log-stream %}, pause,{% endif %} or delete a stream at any time. The stream exports audit and Git events data for all of the organizations in your enterprise, for activity from the time the stream is enabled onwards.

All streamed audit logs are sent as compressed JSON files. The filename format is in`YYYY/MM/HH/MM/<uuid>.json.gz`.
All streamed audit logs are sent as compressed JSON files. The filename format is `YYYY/MM/DD/HH/MM/<uuid>.json.log.gz`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants