summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2012-07-06 16:30:38 -0700
committerJames Davidson <james.davidson@vyatta.com>2012-07-06 16:35:22 -0700
commit2555571f185eb8e6af09b520de247677888ce1d8 (patch)
tree10eb7e24c8ea65bae4e76860bcb06a03dc303bf2
parent384bdfba5e4af3360274dcb93531d7ab093c3664 (diff)
downloadvyatta-op-2555571f185eb8e6af09b520de247677888ce1d8.tar.gz
vyatta-op-2555571f185eb8e6af09b520de247677888ce1d8.zip
Fix NAT regex and correct log file sort order.
Fixes BZ8001.
-rw-r--r--templates/show/log/nat/node.def2
1 files changed, 1 insertions, 1 deletions
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)