Mailing List Archive

varnishlog filtering on host
Hi.
Just a quick question before I dig into it myself.

How would you call varnishlog to verify hits and misses when adding a new host
to a varnish that allready has some traffic?

I need to work a bit to clean up old sinns with unnessesary cookies, forms
with GET methods, and the like...

I am looking at piping varnishlog -o thru a script to filter on hostname, and
then pick out the relevant fields.

Or is this doable with the right regexp perhaps?

Regards

Gaute Amundsen
varnishlog filtering on host [ In reply to ]
Gaute Amundsen <gaute at pht.no> writes:
> How would you call varnishlog to verify hits and misses when adding a
> new host to a varnish that allready has some traffic?

Try 'varnishlog -c -o VCL_call hit' and 'varnishlog -c VCL_call miss'.

Also, varnishhist will show you the relative proportions of hits and
misses in real time (so will varnishstat, for that matter, but not as
prettily)

DES
--
Dag-Erling Sm?rgrav
Senior Software Developer
Linpro AS - www.linpro.no