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](/wiki/#css)$" dontlog
SetEnvIf Request_URI ".\.[js](/wiki/#javascript)$" 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ʼs weblog - I live in A sleepy town, Kent. Married and dad to two, I'm a full-stack web developr, and I do mostly js / nodejs, some ruby, other languages ect ect. I like pubbing, running, eating, home-automation + other diy jiggery-pokery, history, genealogy, television, squirrels, pirates, lego, and time travel.