Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log Filters, SetEnvIf HTTP_STATUS 401

Status
Not open for further replies.

NullTerminator

Programmer
Oct 13, 1998
293
US
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.
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
The first two work, the HTTP_STATUS does not.

tnx
Jeb Beasley
 
PS
also tried
SetEnvIf Status 401 no_logging=0

Should have said "Authorization Required" instead of permission denied

jb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top