httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Wilkinson" <>
Subject [users@httpd] Conditional Logging not working correctly
Date Mon, 02 Dec 2002 16:30:04 GMT
Hi all,

I'm having a problem. One certain file on our server needs to be omitted
from the logs as its frequent access is skewing our log files. It seems
as if the best method for this is to use SetEnvIf to filter it out.

I've been able to get it to filter these requests out into a separate
log file, but for some reason it STILL logs it into the main access_log
file as well. I've RTFM, and that is how I've set it up below. Does
anybody have any ideas why it would still be placing these entries into
the main log file as well as the filtered log file?

Thanks in advance for any help. 


Apache 1.3.26
RedHat Linux 7.1

<snip from httpd.conf> 
SetEnvIf Request_URI "upload_status" dontlog 
CustomLog /home/httpd/logs/dont_log common env=dontlog 
CustomLog /home/httpd/logs/access_log combined env=!dontlog 
</snip from httpd.conf> 

-subsequent entry from /home/httpd/logs/access_log - - [07/Oct/2002:11:58:47 -0500] "GET
HTTP/1.1" 200 572 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
5.0; T312461)"

-subsequent entry from /home/httpd/logs/dont_log - - [07/Oct/2002:11:58:47 -0500] "GET
HTTP/1.1" 200 572

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message