Skip to main content

List

List audit log entries with pagination. Shows recent API activity including user, HTTP method, path, response status, and duration. Requires audit:read permission (admin role by default).

$ osapi client audit list

Total: 3

Audit Entries:

ID TIMESTAMP USER METHOD PATH STATUS DURATION
550e…000 2026-02-21 10:30:00 ops@example.com GET /node/hostname 200 42ms
661f…111 2026-02-21 10:29:55 ops@example.com POST /job 201 15ms
772a…222 2026-02-21 10:29:50 ops@example.com GET /node/_any/network/dns/eth0 200 8ms

Use --limit and --offset for pagination:

$ osapi client audit list --limit 10 --offset 20

Use --json for raw JSON output:

$ osapi client audit list --json
{"total_items":3,"items":[...]}

Flags

FlagDescriptionDefault
--limitMaximum number of entries to return20
--offsetNumber of entries to skip0