summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-07-02 17:26:31 +0300
committerGitHub <noreply@github.com>2026-07-02 17:26:31 +0300
commitfbd19e818f9e046bbeede67b06aca2a04ce39a3c (patch)
tree2600a31dd2e1f2ff370b14c642a2d9404d3ebfd2
parentbf64dbd6a2fc006e29814cda59cfac6506978b44 (diff)
parentab149e4d09925013a6b440af583addf58e6602d4 (diff)
downloadvyos-1x-fbd19e818f9e046bbeede67b06aca2a04ce39a3c.tar.gz
vyos-1x-fbd19e818f9e046bbeede67b06aca2a04ce39a3c.zip
Merge pull request #5299 from c-po/journalctl-priority
op-mode: T9009: add "show log priority <level>" command
-rw-r--r--op-mode-definitions/monitor-log.xml.in18
-rwxr-xr-xop-mode-definitions/show-log.xml.in11
2 files changed, 19 insertions, 10 deletions
diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in
index bd7a98f7d..ae536a2b9 100644
--- a/op-mode-definitions/monitor-log.xml.in
+++ b/op-mode-definitions/monitor-log.xml.in
@@ -111,15 +111,6 @@
</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>
<tagNode name="facility">
<properties>
<help>Monitor last lines of messages file and filter by specified facility</help>
@@ -217,6 +208,15 @@
</properties>
<command>journalctl --no-hostname --boot --follow --unit accel-ppp@pppoe.service</command>
</leafNode>
+ <tagNode name="priority">
+ <properties>
+ <help>Monitor last lines of messages file and filter 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 --priority=$4</command>
+ </tagNode>
<node name="protocol">
<properties>
<help>Monitor routing protocol logs</help>
diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in
index 22c60706d..f551e270f 100755
--- a/op-mode-definitions/show-log.xml.in
+++ b/op-mode-definitions/show-log.xml.in
@@ -7,7 +7,7 @@
<children>
<node name="log">
<properties>
- <help>Show contents of current master logging buffer</help>
+ <help>Show contents of logging buffer</help>
</properties>
<command>journalctl --no-hostname --boot</command>
<children>
@@ -771,6 +771,15 @@
</properties>
<command>journalctl --no-hostname --boot --unit accel-ppp@pppoe.service</command>
</leafNode>
+ <tagNode name="priority">
+ <properties>
+ <help>Show contents of logging buffer 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 --boot --priority=$4</command>
+ </tagNode>
<node name="protocol">
<properties>
<help>Show log for Routing Protocol</help>