summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-10-10 21:10:32 +0200
committerGitHub <noreply@github.com>2025-10-10 21:10:32 +0200
commit7c1bbdfade7b447a4e6723ea3ba13fc1942cd0e2 (patch)
treee03939eda3a3f9797f9f3613307c495cc2a73759
parentb28f8e73da454e4cd2b24287ee2f5a5667922ba2 (diff)
parentbe4910236415cc8f823fff0ea082346010b32ce9 (diff)
downloadvyos-1x-7c1bbdfade7b447a4e6723ea3ba13fc1942cd0e2.tar.gz
vyos-1x-7c1bbdfade7b447a4e6723ea3ba13fc1942cd0e2.zip
Merge pull request #4782 from dmbaturin/T7917-log-tail-journalctl
op-mode: T7917: use journalctl for "show log tail"
-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>