More logging questions - hostname again

Gaute Amundsen gaute at
Thu Jun 28 14:13:40 CEST 2007

On Wednesday 27 June 2007 22:10, Dag-Erling Smørgrav wrote:
> Gaute Amundsen <gaute at> writes:
> > The problem is that AWstats really need a separate field for server
> > hostname (apache: %v) to filter separate vhosts on.  [...]  The only
> > option I can think of right now is to make my own log preprocessor to
> > split the hostname out of the request.  [...]  Or any better
> > sugestions?
> Take the varnishncsa source code and modify it to produce what you need?
> It's really not that hard, just modify the bottom half of h_ncsa().

Thanks for  the pointer. 
I guess I'm sometimes more reluctant to touch C that is strictly waranted :-/

> I intend to eventually modify varnishncsa to understand Apache CustomLog
> format strings, but I have more pressing issues to handle first.

That would be just the thing :) 
But for now it seems that sed pipe seems to be pretty stable.
I guess I ought to add it to the wiki or make a tiny howto or something...?


More information about the varnish-misc mailing list