Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

aasm logs

Query and stream audit-log events. In default mode it fetches recent entries over HTTP; with --follow it streams events live over the gateway WebSocket (like tail -f).

Synopsis

aasm logs [OPTIONS]

This command has no subcommands.

Options

FlagTypeDefaultDescription
-f, --followflagoffStream events in real time over WebSocket.
--agent <AGENT>stringFilter by agent identifier.
--type <TYPE>comma-separatedFilter by event type(s). Accepted: violation, approval, budget.
--since <SINCE>stringShow events after this duration (30m, 2h, 1d) or ISO 8601 timestamp.
--until <UNTIL>stringShow events before this ISO 8601 timestamp.
--limit <LIMIT>integer50Maximum number of entries in non-follow mode.
--no-colorflagoffDisable colored output.
--output <FORMAT>table | json | yamlglobal defaultPer-command output override.

Plus the global options.

Examples

Show the last 50 entries:

aasm logs
2026-06-09T14:01:00Z [VIOLATION] a1b2c3…  file_write denied: /etc/passwd
2026-06-09T14:01:05Z [APPROVAL]  a1b2c3…  network_egress pending: api.openai.com

Filter to violations and budget events for one agent:

aasm logs --agent a1b2c3… --type violation,budget --since 1h

Stream live (Ctrl-C to stop):

aasm logs --follow --type violation

Emit JSON for piping into jq:

aasm logs --output json --limit 200 | jq '.[].message'

Last updated: 2026-06-11 by Chisanan232