varnishlog and multiple tags?

Ken Brownfield kb+varnish at slide.com
Fri Jul 16 22:03:34 CEST 2010


True, but perhaps cleaner:

varnishlog -i RxURL -I /imgs/aba_frente_esq.jpg
-- 
Ken

On Jul 16, 2010, at 12:46 PM, Flavio Torres wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 07/16/2010 08:00 AM, Chris Hecker wrote:
> > 
> 
> > varnishlog -i TxUrl is really useful, but I'd also like it to
> 
> > output the TxHeader Host: entry, since I'm using varnish for
> 
> > multiple sites.  Is that possible with the -i, -I, and -o
> options?
> 
> > I couldn't figure it out, if so.
> 
> 
> Hi Chris,
> 
> Try with awk or perl regexp.
> 
> varnishlog -o |awk 'BEGIN { FS="n"; RS=""} {if
> (/RxURL.*\/imgs\/aba_frente_esq\.jpg/) print }'
> 
> 
> hope this helps
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkxAtxUACgkQNRQApncg294JdwCgs9p9poidxfcGefjOJ+lW7ETv
> oi8AoIyTmJ0djy1Dn7QFY58605KubxWb
> =R8EV
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20100716/1f59feae/attachment-0003.html>


More information about the varnish-misc mailing list