varnishlog to show txurl with domain name

Bjørn Ruberg bjorn at ruberg.no
Mon Aug 30 14:57:01 CEST 2010


On 08/30/2010 02:05 PM, Alessandro Ronchi wrote:
> is it possible to ask varnishlog
> varnishlog -b -i TxUrl
>
> to tell also the domain name of every request?
> I've multiple sites and I need to know where are those requests made...

You need to add TxHeader to the request, and then grep for the Host: header.

I often use something like this:

  varnishlog -i TxURL,TxHeader -b -o | egrep 'TxURL|Host:|^$'

-- 
Bjørn





More information about the varnish-misc mailing list