[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: "Asif Iqbal" <vadud3 (at) gmail.com>
- Date: Fri, 19 Dec 2008 10:44:38 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lRms0a1IBKimUxk5y16G67IcNeWwB2KyV7MBsAjMpIg=; b=TU25dfsoAoh0lpLNB+aCnxdVmMhBBbpDIXMWlweX4LVWu9enfEr5rd98rHYjC6GmKX T7dgyXexaiMEkWp10OQhvtFkhuktTKpxr1slvmLr0Ejmd4TqPd0hvsXEDvzHZpybTY1a hzpYQOKH+WOqFOdZQDzP3Y1+L34FO70DKqaa8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qZSDz1Ywd16ZstsGdf7cvFBFLpReqRbDdZflsyHNEkZnAEsuh9VaC4T/WircAWExll AAU8jeZ0ZxsWxSkOnhJG/BgDIyWlWGGksxv3zqFJxjX5TG1YbE/7pi+UQlrDDR7xNWoA zVqhpZ2WKZDLFbr3KeAbS8mQ+GD6YjQX0hy4w=
- References: <494BBB23.4000801 (at) cvf.fr>
On Fri, Dec 19, 2008 at 10:17 AM, Vincent Schultz <vschultz (at) cvf.fr> wrote:
> 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 .)
`.' includes space as well.
Try something like %error\.. (untested)
>
> Does anyone can help me to find the correct regexp please ?
>
> Thank you,
>
> Vincent
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu