NullTerminator
Programmer
I am setting up log filters. My logs get clogged with PROPFIND requests. I can filter them out, but if a PROPFIND returns a status of 401 I want to log it.
The first two work, the HTTP_STATUS does not.
tnx
Jeb Beasley
Code:
# discard propfinds
SetEnvIf Request_Method PROPFIND no_logging
# discard pings from load balancer
SetEnvIf Request_URI apache_pb\.gif$ no_logging
# capture 401's (Permission denied)
SetEnvIf HTTP_STATUS 401 !no_logging
# set the filter
CustomLog logs/access_log svn_custom env=!no_logging
tnx
Jeb Beasley