Selective logging

Viktor Gunnarson viktor.gunnarson at ericsson.com
Wed May 18 16:54:52 CEST 2016


Hi,

You can easily add a VSL query to your varnishncsa to filter what get 
logged like this:

    varnishncsa -q 'reqHeader:host !~ "foo.com"'

At least on Varnish 4 and 4.1, not sure about Varnish 3...

Best regards,
Viktor

On 18/05/16 14:22, Andrew Kelly wrote:
> Hi all,
>
> I've just run into an issue where somebody out there has
> a domain pointing at an IP address on one of my servers
> where Varnish is listening. It's a fairly new server, so
> this is probably an old entry that got orphaned or something.
> No big deal, I'm sure we'll get it cleared up.
>
> But in the mean time, it's filling my varnishncsa.log with
> false entries. Is there any way to selectively NOT log
> certain traffic?
>
> Many thanks in advance,
>
> Andy
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160518/3dd5039b/attachment.html>


More information about the varnish-misc mailing list