summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--op-mode-definitions/monitor-log.xml.in9
-rwxr-xr-xop-mode-definitions/show-log.xml.in11
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>