[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] How to search "error." pattern with LOG
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] How to search "error." pattern with LOG
- From: "Brand, Thomas R." <TRBrand (at) cvs.com>
- Date: Fri, 19 Dec 2008 10:48:45 -0500
- References: <494BBB23.4000801 (at) cvf.fr>
- Thread-index: Aclh7T/2I6jtj57DQSaMDsaGI1JTkQAA3XYw
- Thread-topic: [hobbit] How to search "error." pattern with LOG
> 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.
>
The '.' in your expression matches 'any character', not the characteter
'.'
You need to 'escape' (precede it with a '\' it to force it to mean the
actual character '.'
Try using
LOG /tmp/log "%error\." COLOR=yellow