Trimming the Apache log

Home

Trimming the Apache log

Mar42004

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 clarkeology.com/folkestoned/

:: :: Comment / reply

Over to you, discussion about anything local, but please be considerate... Folkestone on TV, Kent gigs, Find a flatmate, rent a room, property queries, current news, what's new, local events, for sale, local services, what I like about Folkestone, ask questions, offer advice, plug yourself... the more it's used the more useful a resource it will become. If you want a gig listed click here to add it (fixed now!), or just click here to post a message...