My website hosts a lot of images. Does it make sense to issue this statement in my httpd.conf file?
SetEnvIf Request_URI "\.jpg$" dontlog
I can't see any reason why I need to log these for security purposes. Can you?
jdMorgan
8:55 pm on Mar 30, 2005 (gmt 0)
That depends on whether you occasionally scan your logs (or stats) for evidence of hotlinking -- people putting image links on their Websites that cause their visitors browsers to fetch the images from your server. If this is not a concern, then you might want to disable logging for image requests.
Does setting "dontlog" instead of my own "dont-log" mean u can skip the "env=" parameter for CustomLog?
SN
sitz
10:20 pm on Mar 30, 2005 (gmt 0)
Also matters for things link hitcount (or bytecount) tracking. If you don't log those requests, you can't track them at all; you can't see which images are getting hit hard, and figuring out how much traffic you're pushing in a day becomes tricky (to say the least). If these aren't issues, then by all means, look into not logging. Me, I log every request, even on the sites where I need to roll/compress my logs multiple times per day to keep things running smoothly. =)
jollymcfats
5:28 pm on Mar 31, 2005 (gmt 0)
I don't log image requests unless they have an off-site referrer.