varnishlog and multiple tags?

Flavio Torres fla_torres at yahoo.com.br
Fri Jul 16 21:46:32 CEST 2010


-----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-----

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


More information about the varnish-misc mailing list