From 2555571f185eb8e6af09b520de247677888ce1d8 Mon Sep 17 00:00:00 2001 From: James Davidson Date: Fri, 6 Jul 2012 16:30:38 -0700 Subject: Fix NAT regex and correct log file sort order. Fixes BZ8001. --- templates/show/log/nat/node.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/show/log/nat/node.def b/templates/show/log/nat/node.def index 22f70d3..807b5c3 100644 --- a/templates/show/log/nat/node.def +++ b/templates/show/log/nat/node.def @@ -1,2 +1,2 @@ help: Show log for Network Address Translation (NAT) -run: cat $(printf "%s\n" /var/log/messages* | sort -nr) | grep -e "\[NAT-[0-9]*-*\]" +run: egrep -i "kernel:.*\[NAT-[A-Z]{3,}-[0-9]+\]" $(find /var/log -maxdepth 1 -type f -name messages\* | sort -t. -k2nr) -- cgit v1.2.3