summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-log.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-08 19:46:10 +0200
committerChristian Breunig <christian@breunig.cc>2023-07-08 19:46:10 +0200
commitd7cd3c39164d44b3e99cfe5416b12856a6e0b35d (patch)
tree0d0536cfa661ba767a95d296c40ae374ee7c9469 /op-mode-definitions/show-log.xml.in
parent618984bb98acf25d2d201c155e7911b0a1cf4ec2 (diff)
downloadvyos-1x-d7cd3c39164d44b3e99cfe5416b12856a6e0b35d.tar.gz
vyos-1x-d7cd3c39164d44b3e99cfe5416b12856a6e0b35d.zip
op-mode: T3201: add support to display last <n> log entries
Diffstat (limited to 'op-mode-definitions/show-log.xml.in')
-rw-r--r--op-mode-definitions/show-log.xml.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in
index 7663e4c00..e14596778 100644
--- a/op-mode-definitions/show-log.xml.in
+++ b/op-mode-definitions/show-log.xml.in
@@ -2,9 +2,18 @@
<interfaceDefinition>
<node name="show">
<children>
+ <tagNode name="log">
+ <properties>
+ <help>Show last number of messages in master logging buffer</help>
+ <completionHelp>
+ <list>&lt;1-9999&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>if ${vyos_validators_dir}/numeric --range 1-9999 "$3"; then journalctl --no-hostname --boot --lines "$3"; fi</command>
+ </tagNode>
<node name="log">
<properties>
- <help>Show contents of current master log file</help>
+ <help>Show contents of current master logging buffer</help>
</properties>
<command>journalctl --no-hostname --boot</command>
<children>