Trimming The Apache Log

Home

Trimming the Apache log

Mar4

Pictures

Been a while since I wrote something that will be of no interest at all to anyone reading, so here's something as a reminder to me, here's what I did to trim the size of my log files

SetEnvIf Request_URI "..css$" dontlog
SetEnvIf Request_URI "..js$" dontlog
SetEnvIf Request_URI "..jpg$" dontlog
SetEnvIf Request_URI "..gif$" dontlog
SetEnvIf Request_URI "..ico$" dontlog

CustomLog "|/usr/local/bin/cronolog /logs/%Y/%m/%d/custom.log" bodgedCombined env=!dontlog

So now it doesn't log things I'm not bothered about counting, which saves a load of disk space... Also I've fiddled with my date entering javascript, not entirely happy with it though.

Also, OOOH! Little guitar and beer bottle icons www.clarkeology.com/folkestoned/

:: Comment / reply