Or should I just change my other filter to not use response?%{IPORHOST:clientip} %{USER:ident} %{USER:auth} \[%{HTTPDATE:timestamp}\] "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})" %{NUMBER:response_code} (?:%{NUMBER:bytes}|-) %{QS:referrer} %{QS:agent}
Logserver Alerts below threshold not working
Re: Logserver Alerts below threshold not working
So for the apache log captures I should just use.
Re: Logserver Alerts below threshold not working
Perfect I love when my answers are more deterministic!
I do have one more issue that I thought was related to this initially but it appears is not now. I will open it up in a separate post if that's ok with you?
I do have one more issue that I thought was related to this initially but it appears is not now. I will open it up in a separate post if that's ok with you?
Re: Logserver Alerts below threshold not working
To make certain that it's assigned as an integer, you can tell the field which type to use by appending ':int' to any grok filter. For example:
This will ensure that the match for 'response_code' will always be assigned the 'integer' type. That is what I recommend doing - best practice would be calling it something specific like 'apache_response'.
No problem - go ahead and open up another post. 
Code: Select all
%{NUMBER:response_code:int}Code: Select all
%{NUMBER:apache_response:int}