diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-07-01 11:41:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-01 11:41:16 +0100 |
| commit | 063e007a5a8eac3bb9ad101206dc94734eeaa595 (patch) | |
| tree | d45a259adb4ee5192a5b99d03515cc36c7736e3b | |
| parent | 42c3e236c24895c7599790fb2aacbadf210de9bd (diff) | |
| parent | e89ca5acb309f7af1b49f28c152b3f0f3296f619 (diff) | |
| download | vyos-1x-063e007a5a8eac3bb9ad101206dc94734eeaa595.tar.gz vyos-1x-063e007a5a8eac3bb9ad101206dc94734eeaa595.zip | |
Merge pull request #5300 from c-po/journalctl-facility
op-mode: T8372: add "show log facility <name>" command
| -rw-r--r-- | op-mode-definitions/monitor-log.xml.in | 9 | ||||
| -rwxr-xr-x | op-mode-definitions/show-log.xml.in | 11 |
2 files changed, 19 insertions, 1 deletions
diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index 7bf4fc907..bd7a98f7d 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -120,6 +120,15 @@ </properties> <command>SYSTEMD_COLORS=false journalctl --no-hostname --follow --boot -p $4</command> </tagNode> + <tagNode name="facility"> + <properties> + <help>Monitor last lines of messages file and filter by specified facility</help> + <completionHelp> + <list>kern user mail daemon auth syslog lpr news uucp cron authpriv ftp local0 local1 local2 local3 local4 local5 local6 local7</list> + </completionHelp> + </properties> + <command>SYSTEMD_COLORS=false journalctl --no-hostname --follow --boot --facility=$4</command> + </tagNode> <leafNode name="flow-accounting"> <properties> <help>Monitor last lines of flow-accounting log</help> diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in index 302188602..22c60706d 100755 --- a/op-mode-definitions/show-log.xml.in +++ b/op-mode-definitions/show-log.xml.in @@ -36,7 +36,7 @@ <properties> <help>Show listing of authorization attempts</help> </properties> - <command>journalctl --no-hostname --boot --quiet SYSLOG_FACILITY=10 SYSLOG_FACILITY=4</command> + <command>journalctl --no-hostname --boot --quiet --facility=auth,authpriv</command> </leafNode> <leafNode name="certbot"> <properties> @@ -171,6 +171,15 @@ </node> </children> </node> + <tagNode name="facility"> + <properties> + <help>Show contents of logging buffer and filter messages by specified facility</help> + <completionHelp> + <list>kern user mail daemon auth syslog lpr news uucp cron authpriv ftp local0 local1 local2 local3 local4 local5 local6 local7</list> + </completionHelp> + </properties> + <command>SYSTEMD_COLORS=false journalctl --no-hostname --boot --facility=$4</command> + </tagNode> <node name="firewall"> <properties> <help>Show log for Firewall</help> |
