see host header in varnishlog v4

Viktor Villafuerte viktor.villafuerte at optusnet.com.au
Tue Sep 29 00:54:16 CEST 2015


Hi Tim,

On Mon 28 Sep 2015 08:22:14, Dridi Boukelmoune wrote:
> On Mon, Sep 28, 2015 at 5:27 AM, Tim Dunphy <bluethundr at gmail.com> wrote:
> > Hey all,
> >
> >  I'm trying to figure out how to see the host header in varnishlog.
> >
> >  I tried this combination but it didn't really work for me:
> >
> > varnishlog -q 'RxHheader  ~ "Host: wiki.example.com"'

# Varnish version
varnishd (varnish-4.0.3 revision b8c4a34)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2014 Varnish Software AS

you can do this

shell> varnishlog -I ReqHeader:[Hh]ost

which will show all occurences of ReqHeader matching [Hh]ost regex. See
man varnishlog for more info



> > Query expression error:
> > Tag name matches zero tags (Pos 1)
> > RxHheader  ~ "Host: wiki.example.com"
> > #########-----------------------------
> >
> > Can someone please fill me in on the correct way to do this?
> 
> Hi Tim,
> 
> The tag you are looking for is ReqHeader, see `man vsl` for the
> comprehensive list.
> 
> Cheers,
> Dridi
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

-- 
Regards

Viktor Villafuerte
Optus Internet Engineering
t: +61 2 80825265



More information about the varnish-misc mailing list