[Logcheck-commits] CVS logcheck/docs
CVS User maks-guest
logcheck-devel@lists.alioth.debian.org
Tue, 12 Oct 2004 13:45:56 -0600
Update of /cvsroot/logcheck/logcheck/docs
In directory haydn:/tmp/cvs-serv23041/docs
Modified Files:
README.logcheck-database
Log Message:
sed fine tuning thanks to alfie.
--- /cvsroot/logcheck/logcheck/docs/README.logcheck-database 2004/09/28 15:40:30 1.3
+++ /cvsroot/logcheck/logcheck/docs/README.logcheck-database 2004/10/12 19:45:56 1.4
@@ -157,7 +157,7 @@
A quick test for a new rule would be to grep aboves regex against
its logfile, but it is safer to remove any trailing space before:
-sed -e 's/ *$//' /var/log/syslog | egrep \
+sed -e 's/[[:space:]]+$//' /var/log/syslog | egrep \
'^\w{3} [ :0-9]{11} oempc wwwoffled\[[0-9]+\]: WWWOFFLE (On|Off)line\.$'
Pass all rules files through "sort -u" to simplify maintenance, then