31 Oct
2014
31 Oct
'14
8:39 p.m.
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