logging statements in vcl

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Jan 8 23:10:38 CET 2010

In message <458a97201001081354s50a74935o2a2d36a8dab44007 at mail.gmail.com>, Frank
 van Lingen writes:
>I recently started to use varnish. The installation with the default
>vcl starts without problems.
>However if I turn varnish logging on It seems to cache nothing (I see
>only 'pass' and 'deliver'  statements).
>Is there a way to add logging statements in the vcl file that will be
>displayed when I turn on varnish logging? I was not able to find
>anything about this on the varnish pages. It would help analyzing the
>vcl configurations.

Set the "vcl_trace" parameter, that will add logging entries for
every branch taken in your VCL.

The number 1 case of not caching is cookies.


Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-misc mailing list