Cain Manor

Your Guide To All Things Cain™

July 29, 2010
by Greg Cain
Comments Off

Setup logging for Varnish — The right way

Ini­tially, log­ging Var­nish didn’t really work that well. Var­nish, by default, doesn’t log (var­nish­ncsa can do some log­ging, but I haven’t fig­ured that out yet.) I’ve been pars­ing my logs with JAW­stats, which reads the Apache logs. How­ever, by default, … Con­tinue read­ing

July 25, 2010
by Greg Cain
Comments Off

Setup logging for Varnish

So far, we’ve got Var­nish installed and have a cor­rect default.vcl. Now let’s make sure AWStats/JAW­Stats can read them. In your default.vcl, make sure you have this stanza. Oth­er­wise, the Apache log files will only show traf­fic from your proxy server … Con­tinue read­ing

July 25, 2010
by Greg Cain
Comments Off

Updated Varnish default.vcl

I wasn’t able to get the var­nish logs in a for­mat awstats/jawstats could under­stand. After a LOT of googling, I’ve got­ten this to work. I added sub vcl_recv { # Add a unique header con­tain­ing the client address remove req.http.X-Forwarded-For; set … Con­tinue read­ing

July 16, 2010
by Greg Cain
Comments Off

Biking Home

I’ve been bik­ing to and from work, start­ing approx­i­mately on June 1st. I don’t par­tic­u­larly enjoy it, and here is the reason why.