You can't log to different files based on error codes.  So no this is
not something you would achieve with the error log directives or the
access log filtering based on the environment variables...  I want to
do it with rsyslog filters...

"Although we have just shown that conditional logging is very powerful
and flexible, it is not the only way to control the contents of the
logs. Log files are more useful when they contain a complete record of
server activity. It is often easier to simply post-process the log
files to remove requests that you do not want to consider."

Any one out there doing this already?

Thanks,

Jonathan

On Fri, Sep 23, 2011 at 1:07 PM, Oliver Beattie <[email protected]> wrote:
> Is this not something that would be achieved better by using Apache's
> error log directive to do the filtering?
> http://httpd.apache.org/docs/2.2/mod/core.html#errorlog
>
> On Sep 23, 2011, at 5:50 PM, Jonathan Sabo <[email protected]> wrote:
>
>> Does anyone have any rsyslog config to match apache server status and
>> error codes?  I'm trying to find a way to log error codes 500's and
>> 400's to different logs.  Would just like some advice on how to go
>> about doing that...
>>
>> Thanks,
>>
>> Jonathan
>> _______________________________________________
>> rsyslog mailing list
>> http://lists.adiscon.net/mailman/listinfo/rsyslog
>> http://www.rsyslog.com
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to