From be4910236415cc8f823fff0ea082346010b32ce9 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 9 Oct 2025 13:02:48 +0100 Subject: op-mode: T7917: use journalctl for "show log tail" --- op-mode-definitions/show-log.xml.in | 6 +++--- 1 file 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 @@ - Show last 10 lines of /var/log/messages file - tail -n 10 /var/log/messages + Show given number of the latest log messages (default: 10) + journalctl --reverse --lines 10 - tail -n "$4" /var/log/messages | ${VYATTA_PAGER:-cat} + journalctl --reverse --lines "$4" -- cgit v1.2.3