diff options
author | Christian Breunig <christian@breunig.cc> | 2023-07-08 19:46:10 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-07-08 19:46:10 +0200 |
commit | d7cd3c39164d44b3e99cfe5416b12856a6e0b35d (patch) | |
tree | 0d0536cfa661ba767a95d296c40ae374ee7c9469 /op-mode-definitions/show-log.xml.in | |
parent | 618984bb98acf25d2d201c155e7911b0a1cf4ec2 (diff) | |
download | vyos-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.in | 11 |
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><1-9999></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> |