unifi events
About 563 words
Read and follow the system log and the audit log.
Usage
unifi events [flags]Aliases: event, logs
Read and follow the controller's system log and its audit log.
unifi events alone is unifi events get: the newest events of the system log. It takes the flags of get, so unifi events --follow works as well.
Flags
| Flag | Description |
|---|---|
--audit | the audit log: what administrators did (same as --category admin) |
--category <string> | only this stream: device, client, security, admin, update, system |
--filter <string> | filter expression, such as 'subject == "Core Switch"' |
-f, --follow | keep running and print new events as they happen, until Ctrl-C |
--interval <duration> | how often --follow asks for new events (default 5s) |
--limit <int> | show at most this many events (default 50) |
--severity <string> | only events at least this severe: info, warning, critical |
--since <string> | only events since a duration ago (2h, 7d) or a point in time (RFC 3339) |
Commands
unifi events get: Show the system log, newest first, or follow it
unifi events get
Show the system log, newest first, or follow it.
Usage
unifi events get [flags]Aliases: list, ls
Show the controller's system log, newest event first.
Pick a stream with --category, or pass --audit for the audit log: what administrators did, and who did it. --since takes a duration to look back (30m, 2h, 7d) or a point in time (2026-03-01T08:00:00Z, 2026-03-01). --severity keeps events of that severity and above. --filter takes a filter expression such as subject == "Core Switch". Fields:
actor category id key message severity subject timeWith --follow the log is printed oldest first and the command keeps running, printing new events as they happen until you press Ctrl-C. Ctrl-C is how a follow ends, so the command then exits with status 0; it exits with an error only when the log can no longer be read. With --output json it writes one JSON object per line.
Examples
unifi events get
unifi events get --since 2h --severity warning
unifi events get --category security --limit 10
unifi events get --audit --since 7d
unifi events get --filter 'subject == "AP Garden"' --output wide
unifi events get --follow
unifi events get -f --category device --output jsonFlags
| Flag | Description |
|---|---|
--audit | the audit log: what administrators did (same as --category admin) |
--category <string> | only this stream: device, client, security, admin, update, system |
--filter <string> | filter expression, such as 'subject == "Core Switch"' |
-f, --follow | keep running and print new events as they happen, until Ctrl-C |
--interval <duration> | how often --follow asks for new events (default 5s) |
--limit <int> | show at most this many events (default 50) |
--severity <string> | only events at least this severe: info, warning, critical |
--since <string> | only events since a duration ago (2h, 7d) or a point in time (RFC 3339) |
Global flags
These flags are accepted by every command.
| Flag | Description |
|---|---|
--color-scheme <string> | color scheme: auto, dark or light |
--context <string> | context to use instead of the current one |
--no-cache | ask the controller for everything instead of using cached answers |
-o, --output <string> | output format: text, wide, json, yaml (table is another name for text) |
-s, --site <string> | site to act on instead of the context's default site |
--theme <string> | theme to render with instead of the configured one |
