diff options
| -rw-r--r-- | debian/control | 2 | ||||
| -rw-r--r-- | op-mode-definitions/monitor-log.xml.in | 13 |
2 files changed, 11 insertions, 4 deletions
diff --git a/debian/control b/debian/control index ac05c06c4..6984e93d6 100644 --- a/debian/control +++ b/debian/control @@ -121,8 +121,6 @@ Depends: tuned, beep, wide-dhcpv6-client, -# Generic colorizer - grc, # The package "whois" contains both a whois database client # that end users can find useful, # and the "mkpasswd" utility we use for generating hashed passwords diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in index fe9fa0051..7bf4fc907 100644 --- a/op-mode-definitions/monitor-log.xml.in +++ b/op-mode-definitions/monitor-log.xml.in @@ -9,13 +9,13 @@ <properties> <help>Monitor last lines of messages file</help> </properties> - <command>bash -c 'SYSTEMD_COLORS=false journalctl --no-hostname --follow --boot'</command> + <command>SYSTEMD_COLORS=false journalctl --no-hostname --follow --boot</command> <children> <node name="color"> <properties> <help>Output log in a colored fashion</help> </properties> - <command>bash -c 'SYSTEMD_COLORS=false grc journalctl --no-hostname --follow --boot'</command> + <command>SYSTEMD_COLORS=true journalctl --no-hostname --follow --boot</command> </node> <leafNode name="certbot"> <properties> @@ -111,6 +111,15 @@ </node> </children> </node> + <tagNode name="level"> + <properties> + <help>Monitor log and filter messages by minimum priority level (includes all higher severities)</help> + <completionHelp> + <list>emerg alert crit err warning notice info debug</list> + </completionHelp> + </properties> + <command>SYSTEMD_COLORS=false journalctl --no-hostname --follow --boot -p $4</command> + </tagNode> <leafNode name="flow-accounting"> <properties> <help>Monitor last lines of flow-accounting log</help> |
