[Info-vax] Apache log rotation

Neil Rieck n.rieck at sympatico.ca
Mon Aug 13 20:43:56 EDT 2012


On Sunday, August 12, 2012 6:47:25 AM UTC-4, Paul Sture wrote:
> On Sat, 11 Aug 2012 07:12:23 -0700, Neil Rieck wrote:
> 
> 
> 
> > But we have noticed that tabbed browsers expect favicon.ico to be
> 
> > available (probably in the browser's cache) so it can be used "to
> 
> > precede the web page title" on each tab.
> 
> 
> 
> For those of us who use tabbed browsers and the bookmarks toolbar the 
> 
> icons give a very useful visual hint.
> 
> 
> 
> > Anyway, these two changes:
> 
> > http://www3.sympatico.ca/n.rieck/docs/
> 
> openvms_notes_apache.html#tweaks2012
> 
> > have cut the size of my log files by roughly 50% per day which I am
> 
> > assuming is consuming fewer system and network resources.
> 
> 
> 
> You can also exclude logging of various files:
> 
> 
> 
> http://www.webmasterview.com/2009/11/apache-log-cruft/
> 
> 
> 
> SetEnvIf Request_URI "^/wordpress/" cruft
> 
> SetEnvIf Request_URI "^/robots\.txt$" cruft
> 
> SetEnvIf Request_URI "^/favicon\.ico$" cruft
> 
> CustomLog /logs/example.com/access.log combined env=!cruft
> 
> 
> 
> -- 
> 
> Paul Sture

Thanks, I know about log file filtering but think it is better to provide files like "favicon.ico" so browsers stop requesting them (think "baby birds"). Once I did this (and a couple of other things) the host system shifted from chaotic into an even grove. (the log file is now 50% smaller because the web-server is just better behaved)


Neil Rieck
Kitchener / Waterloo / Cambridge,
Ontario, Canada.
http://www3.sympatico.ca/n.rieck/
 



More information about the Info-vax mailing list