summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xop-mode-definitions/show-log.xml.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in
index b437bc273..1f28418e5 100755
--- a/op-mode-definitions/show-log.xml.in
+++ b/op-mode-definitions/show-log.xml.in
@@ -875,10 +875,10 @@
</completionHelp>
</properties>
<standalone>
- <help>Show last 10 lines of /var/log/messages file</help>
- <command>tail -n 10 /var/log/messages</command>
+ <help>Show given number of the latest log messages (default: 10)</help>
+ <command>journalctl --reverse --lines 10</command>
</standalone>
- <command>tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat}</command>
+ <command>journalctl --reverse --lines "$4"</command>
</tagNode>
<leafNode name="vpn">
<properties>