Home > @cerbos/core > Client > listDecisionLogEntries
List decision log entries from the policy decision point server's audit log.
Signature:
listDecisionLogEntries(request: ListDecisionLogEntriesRequest, options?: RequestOptions): AsyncGenerator<DecisionLogEntry, void, undefined>;
Parameter |
Type |
Description |
---|---|---|
request | ||
options |
(Optional) |
Returns:
AsyncGenerator<DecisionLogEntry, void, undefined>
Requires
-
the client to be configured with Options.adminCredentials; and
-
the Cerbos policy decision point server to be configured with
-
the admin API enabled
-
the local audit logging backend, and
-
decision logs enabled.
for await (const entry of cerbos.listDecisionLogEntries({ filter: { tail: 5 } })) {
console.log(entry);
}