diff options
| author | Daniil Baturin <daniil@baturin.org> | 2025-10-09 13:02:48 +0100 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2025-10-09 13:02:48 +0100 |
| commit | be4910236415cc8f823fff0ea082346010b32ce9 (patch) | |
| tree | 4f137ba518d686b0f3fe5965bf6ed81b4db07180 | |
| parent | 1c181499a3af4b6c170d3fea2b96af58bb0a34a7 (diff) | |
| download | vyos-1x-be4910236415cc8f823fff0ea082346010b32ce9.tar.gz vyos-1x-be4910236415cc8f823fff0ea082346010b32ce9.zip | |
op-mode: T7917: use journalctl for "show log tail"
| -rwxr-xr-x | op-mode-definitions/show-log.xml.in | 6 |
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> |
