[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to search "error." pattern with LOG
- To: hobbit (at) hswn.dk
- Subject: How to search "error." pattern with LOG
- From: Vincent Schultz <vschultz (at) cvf.fr>
- Date: Fri, 19 Dec 2008 16:17:55 +0100
- User-agent: Thunderbird 2.0.0.18 (X11/20081125)
Hello,
I am trying to monitor a log file in order to be alerted when the string
"error." appears.
For instance :
error.grammar
error.noressource
... should send an alert
but "error " (with a space after) should not.
I tried to put in hobbit-clients.cfg :
LOG /tmp/log error. COLOR=yellow
==> does not work
LOG /tmp/log %(?-i)error. COLOR=yellow
==> works but match with error (without the .)
Does anyone can help me to find the correct regexp please ?
Thank you,
Vincent