Skip to main content
Audit logs record authenticated API requests across your entire organization. Use them to review who called Kernel, which endpoint they called, when the request happened, and how the request completed. Choose the endpoint that matches the amount of data you need: Audit logs are ordered newest first. Time windows use an inclusive start and exclusive end: [start, end). A search or export can cover up to 30 days. Split longer periods into multiple time windows. Both endpoints are also available from the CLI. For the underlying HTTP API, see search and export in the API reference.

Filter audit logs

The API and SDKs use the same filters for search and export:
  • auth_strategy filters by authentication method, such as api_key, dashboard, or oauth.
  • service filters by the service that emitted the audit event.
  • method returns only requests that use the specified HTTP method.
  • exclude_method omits requests that use any of the specified HTTP methods.
  • search matches path, user ID, email, client IP, or status.
  • search_user_id matches requests from the specified user IDs in addition to any free-text matches.

Search audit logs

Each API page contains up to 100 events. The SDK pagination helpers request older pages as you iterate.
See the API reference for the full request and response schema.

Export audit logs

The SDK download helpers default to jsonl.gz and write a complete export to a destination you provide. They:
  • request every chunk until the export is complete
  • validate pagination metadata and each chunk’s SHA-256 checksum before writing
  • retry transient HTTP and transfer failures
  • append verified chunks in order
The helpers don’t close the destination. Python provides equivalent sync and async methods; both accept a synchronous binary destination.
Export chunks contain one JSON object per line. They use the same fields as search results and add event_id. For direct HTTP integrations, see the API reference for pagination headers, formats, and the full request and response schema.