How to limit what apache writes to the log files
When apache creates entries in the log file (/var/log/httpd/www...) it includes all the pictures accessed on a web page as well as the html and other stuff.
I have a huge site with over 10 million pages and growing, and high traffic. My log file is now 2 gig and growing. 90% of the content of the log file are entries for each image downloaded per session. Logging every little image downloaded from my site just wastes space and it is of no importance to me. Is there any way to tell apache to omit logging images files or files of a certain type? This will reduce the size of my log file dramatically. Thanks for your help. Andy |
Quote:
http://httpd.apache.org/docs/1.3/logs.html#conditional From the docs: Code:
# Mark requests from the loop-back interface Code:
SetEnvIf RequestImg "^.jpg" dontlog |
TB0ne, tried what you suggested but it did not work. It is still logging the images. Any other ideas? Thanks
|
Have you tinkered with it?
perhaps Quote:
Having not looked at it maybe something like this... Quote:
|
All times are GMT -5. The time now is 08:48 AM. |