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_strategyfilters by authentication method, such asapi_key,dashboard, oroauth.servicefilters by the service that emitted the audit event.methodreturns only requests that use the specified HTTP method.exclude_methodomits requests that use any of the specified HTTP methods.searchmatches path, user ID, email, client IP, or status.search_user_idmatches 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.Export audit logs
The SDK download helpers default tojsonl.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
event_id.
For direct HTTP integrations, see the API reference for pagination headers, formats, and the full request and response schema.