Github Copilot Logs
Retrieves GitHub Copilot activity logs from GitHub Enterprise audit logs. Automatically filters to Copilot-related events (action:copilot.*).
Sync Type: Incremental
Requirements
Before configuring this input, you need to:
-
Create a Personal Access Token (PAT) — GitHub docs.
- Go to your GitHub settings
- Navigate to Developer settings > Personal access tokens > Tokens (classic)
- Click "Generate new token (classic)"
- Select the
read:audit_logscope - Copy and securely store the generated token
-
Required Permissions:
- You must be an enterprise admin to access enterprise audit logs
- The PAT must have the
read:audit_logscope
Configuration
Settings
| Setting | Type | Required | Default | Description |
|---|---|---|---|---|
enterprise | string | Yes | - | Your GitHub enterprise slug or ID |
bot_actions_only | bool | No | false | When enabled, only return Copilot events initiated by the Copilot bot. When disabled, return all Copilot events regardless of who triggered them. |
use_synthetic_data | bool | No | false | Generate synthetic data for testing, instead of connecting to a real data source. Defaults to an hourly cron schedule for cron-based inputs. |
backfill_start_time | date | No | - | The date to start fetching data from. If not specified, no past records will be fetched. |
Secrets
| Secret | Type | Required | Description |
|---|---|---|---|
personal_access_token | secret | Yes | Your personal access token that grants read |
Troubleshooting
Common issues and solutions:
1. Rate Limit Errors
- The input automatically handles rate limiting by waiting for the reset period
- You'll see logs indicating the wait time when rate limits are hit
2. Authentication Errors
- Verify your PAT has the
read:audit_logscope - Ensure the PAT hasn't expired
- Confirm you have enterprise admin access
3. No Data
- Check if your enterprise slug/ID is correct
- Verify that Copilot events exist in the time range you're querying
- Ensure you have Copilot enabled in your enterprise
Related Articles
Sample Record
Code
Sync frequency
By default this input polls approximately every 10 seconds, with each sync beginning after the previous one completes. A cron schedule configured on the pipeline overrides this cadence. See Input Sync Frequency for details.
Each sync collects events newer than the latest event already collected, so an event GitHub makes available after newer events have been collected can be missed.
Community transforms
The Monad Transforms Repository has ready-made transforms for this input. Import one into your organization, then add it to a pipeline after this input.
| Format | Transform |
|---|---|
| OCSF v1.9.0 | GitHub Copilot Logs to OCSF v1.9.0 |
| ECS v9.5.0 | GitHub Copilot Logs to ECS v9.5.0 |
| CEF | GitHub Copilot Logs to CEF |
CEF transforms emit an intermediate record; add the CEF Serializer transform after one to produce the CEF:0 string.