Console Terminal
Output options and filters
Options accepted by every table command in the console terminal: severity, source, state, limit, sort and JSON.
1 min read
Overview
Every command that returns a table accepts the same options. Combine them freely.
| Option | Effect |
|---|---|
--sev <CRIT|HIGH|MED|LOW> | keep only rows with that severity |
--src <source> | keep only rows from that source |
--state <state> | keep only rows in that state |
--limit <n> | limit the number of rows |
--sort <column> | sort by the given column |
--json | return the table as JSON |
Examples
alerts --sev CRIT --limit 10
queue mine --sort age
incidents --json
sources --state degraded
Keyboard
| Key | Action |
|---|---|
Tab | Complete a command or argument |
↑ / ↓ | Browse the command history |
Ctrl+L | Clear the screen (same as clear) |
Ctrl+C | Cancel the current line or confirmation prompt |
Ctrl+R | Search the command history |
Related
Tips
- Start with a narrow filter (
--sev CRIT) and widen it, rather than reading long tables. - Use
--jsonwhen copying results into a ticket or a script; the fields match the table columns. - Options apply only to data you are allowed to read; they never show rows of an unlicensed module.
If a command returns nothing
| Cause | Check |
|---|---|
| Filter too narrow | Remove options one by one |
| No retained data yet | The module may still be waiting for traffic or mail |
| Missing permission | Ask an administrator to review your role |