ListAuditLogEntries
Retrieve audit log entries as a stream. This API supports querying both access logs (admin API calls) and decision logs (authorization checks).HTTP Request
Authentication
Requires BasicAuth credentials configured in the Cerbos server.Path Parameters
Type of audit log entries to retrieve. Must be one of:
KIND_ACCESS- Admin API access logsKIND_DECISION- Authorization decision logs
Query Parameters
Exactly one of the following filter parameters must be specified:Retrieve the last N entries. Minimum 1, maximum 1000.Example:
tail=100Retrieve entries within a time range.
Retrieve entries since N hours/minutes ago.Example:
since=1h or since=30mRetrieve a specific entry by its Call ID. Must be a 26-character ULID.Pattern:
^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$Response
The response is a stream of audit log entries. Each entry contains either an access log entry or a decision log entry.Example Request - Last 10 Decision Logs
Example Request - Access Logs Since 1 Hour Ago
Example Request - Logs Between Time Range
Example Request - Lookup Specific Call
Example Response
Use Cases
Monitoring Authorization Decisions
Use decision logs to:- Track which users are accessing which resources
- Audit permission grants and denials
- Identify patterns in authorization failures
- Debug policy evaluation issues
Monitoring Admin Operations
Use access logs to:- Track policy changes and updates
- Monitor schema modifications
- Audit administrative access to the PDP
- Investigate security incidents
Compliance and Reporting
Both log types support:- Time-based queries for compliance reports
- Specific call ID lookups for incident investigation
- Streaming for real-time monitoring
- Integration with external log aggregation systems