From 1e094d77022ad49f29f05718913b4c5b23203012 Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Tue, 25 Jul 2017 19:19:13 +0200 Subject: The command "show log firewall name " does not show the expected log entries --- templates/show/log/firewall/ipv6-name/node.tag/node.def | 2 +- templates/show/log/firewall/name/node.tag/node.def | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/show/log/firewall/ipv6-name/node.tag/node.def b/templates/show/log/firewall/ipv6-name/node.tag/node.def index 072e210..629e237 100644 --- a/templates/show/log/firewall/ipv6-name/node.tag/node.def +++ b/templates/show/log/firewall/ipv6-name/node.tag/node.def @@ -1,5 +1,5 @@ help: Show log for a specified firewall allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall ipv6-name) echo "${ARR[@]//\'/}" -run: cat $(printf "%s\n" /var/log/messages* | sort -nr) | egrep "\[$5-[0-9]+|default-[ADR]\]" +run: cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-([0-9]+|default)-[ADR]\]" diff --git a/templates/show/log/firewall/name/node.tag/node.def b/templates/show/log/firewall/name/node.tag/node.def index 4e71fa0..7431f8a 100644 --- a/templates/show/log/firewall/name/node.tag/node.def +++ b/templates/show/log/firewall/name/node.tag/node.def @@ -1,5 +1,5 @@ help: Show log for a specified firewall allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall name) echo "${ARR[@]//\'/}" -run: cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-[0-9]+|default-[ADR]\]" +run: cat $(printf "%s\n" /var/log/messages* | sort -nr ) | egrep "\[$5-([0-9]+|default)-[ADR]\]" -- cgit v1.2.3