diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-10-10 21:10:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-10 21:10:32 +0200 |
| commit | 7c1bbdfade7b447a4e6723ea3ba13fc1942cd0e2 (patch) | |
| tree | e03939eda3a3f9797f9f3613307c495cc2a73759 | |
| parent | b28f8e73da454e4cd2b24287ee2f5a5667922ba2 (diff) | |
| parent | be4910236415cc8f823fff0ea082346010b32ce9 (diff) | |
| download | vyos-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-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> |
