diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-06-20 23:14:20 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-06-20 23:17:00 +0200 |
| commit | b133a93a0f9c0ac103cfdb96b71d61dd9df0912f (patch) | |
| tree | e59eaaf8408df91010bb955ad49741f01ffdab77 | |
| parent | 871f2fce4ebdc2adc77d086a59bfc38093d4d6dc (diff) | |
| download | vyos-1x-b133a93a0f9c0ac103cfdb96b71d61dd9df0912f.tar.gz vyos-1x-b133a93a0f9c0ac103cfdb96b71d61dd9df0912f.zip | |
op-mode: T9009: extend "monitor log" with filter level
journalctl captures all syslog priority levels; filtering happens at query time
via -p <level>. The existing monitor log command always shows all priorities.
A "monitor log filter <priority>" sub-command lets operators tail the journal
at a specific minimum severity without having to remember journalctl flags.
"journalctl -p <level>" shows messages at that level and above (i.e., lower
numeric severity values are always included — warning also shows err, crit,
alert, emerg).
| -rw-r--r-- | op-mode-definitions/monitor-log.xml.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index b82138b62..7bf4fc907 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -111,6 +111,15 @@ </node> </children> </node> + <tagNode name="level"> + <properties> + <help>Monitor log and filter messages by minimum priority level (includes all higher severities)</help> + <completionHelp> + <list>emerg alert crit err warning notice info debug</list> + </completionHelp> + </properties> + <command>SYSTEMD_COLORS=false journalctl --no-hostname --follow --boot -p $4</command> + </tagNode> <leafNode name="flow-accounting"> <properties> <help>Monitor last lines of flow-accounting log</help> |
