How to collect lines from varnishncsa only from a specific domain?

Geoff Simmons geoff at uplex.de
Wed Mar 30 10:06:06 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/29/11 10:09 PM, Kurt Kraut wrote:
> 
> I'm trying to use varnishncsa -c -I to collect the output of varnishncsa
> concerning a specific domain (e.g.: domain.com). I've attempted the
> following commands:
> 
> varnishncsa -c -I *domain.com*
> varnishncsa -c -I /*domain.com/
> 
> And none of them worked. But the following command works:
> 
> varnishncsa -c | grep domain.com

The -I flag for varnishncsa and other tools does regex matching, not
globbing with the '*' wildcard.

But if it's enough for you to just match the string domain.com, you
don't need anything else:

varnishncsa -c -I domain.com

Just like for grep.


Best,
Geoff
- -- 
** * * UPLEX - Nils Goroll Systemoptimierung

Schwanenwik 24
22087 Hamburg

Tel +49 40 2880 5731
Mob +49 176 636 90917
Fax +49 40 42949753

http://uplex.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (SunOS)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJNkuRuAAoJEOUwvh9pJNURuPYQAI51SjWQXEzicJtgjpMW5R7c
rk88lflgWqCyo3390qvd3eA2YAW7JIPSsOcFhLwFSb1/OxLHqmn5lIy2y/gTiJbV
kd9yoVMomwWyH0vAr3F1L3iW7HwTLMoz/F9nXNBYRYhbAUaAs9ESrEIiPqD3SYP8
Z1Py1DwtEhiVfJ8X3yYEfVEef9B60Zn1Y3czrQ75m+i9mvljMWxCa2kL/IgKVTe+
MlwQA4wPni+qxTJoC5wwZNLh6FHRtl2F6OQUJrm0bBjt97tw8Ul+1DLFUjHCY6vl
lPTXQFflqDwaBo4kiPHRgpKHvmFpcwNZokYeZ9bQgB8ds+fJCx4DBI/t40pUCRiB
gJT5AKfFCiFyu/HdC4vGMqXrt22wn9yriHUhTI8qnbHRj939wFkoBix3XrjjVKSW
4Ma1kaET3tTJILtz4xhAVhQPOb4HEuoY5otcTrUS+Ix5aEQwsjFsEVkzS7mh8RLc
OtNe8t0JEmLm7SdgFSit7RO/i0dPRyL4ih8duB1PIKeJxys8nSIQvODzban7k9Oa
rrQVsplPLmHjngUBoDxNkyc1yo7s6OjsVO7seVxjvgOSoWdmgnOEG3oVvF9uZ2Jd
tFPl7gfBM6eHR8owLgUscuaQGVbRr00om5Y3RSX/MGqPZwQR8Dy/X6YJI0DIAZfQ
Mj2/uaZ7Uw4lHJFRxhkL
=Lbj3
-----END PGP SIGNATURE-----




More information about the varnish-misc mailing list