Blog2004 ≫ Trimming the Apache log

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/[^Originally a link to a Folkestone folder on this site, was it before I got the folkestonegerald.com domain?

js: Programming language of the internets, mostly how I make my living.

⬅️ :: ➡️

Paul Clarke's weblog - I live in Hythe near Folkestone. Wed to Clare and dad to 2, I am a full stack web developr, + I do mostly javascript / nodejs, some ruby, other languages etc. I like pubbing, parkrun, restaurants, home-automation and other diy jiggery-pokery, history, tree stuff, TV, squirrels, pirates, lego, + TIME TRAVEL.