Xymon Mailing List Archive search

alert for non 200 status from log monitoring

list Deepak Deore
Fri, 31 Oct 2014 13:39:55 -0700
Message-Id: <user-e7c401202f5c@xymon.invalid>

Hi,

I want to trigger alert if there is non 200 status in below tomcat access
logs. I have enabled logs monitoring in client-local.cfg, eg. below log has
non-200 status in 3rd field from last.

10.10.10.10 - - [31/Oct/2013:15:45:56 +0000] GET /some/long/url HTTP/1.0
404 2531 161

How can i define that pattern in analysis.cfg, i can define for 404 as
below but would like to alert for all non 200.

LOG %/path/to/log_file/access\.[0-9]*-[0-9]*-[0-9]*\.log " 404 " COLOR=red

Thanks,
Deepak