Varnish HIT/MISS Web Statistics Question

Andrei lagged at
Wed Mar 29 07:00:00 CEST 2017

Hi Devin,

The easiest method would be to use external analytics services for your
site(s), such as Google Analytics. However, if you do not wish to use
external services then I suggest using something like splitlogs, and having
both Apache and varnishncsa cache hits piped to it, which in return will
output all requests to your access logs as expected. If you're in a cPanel
environment, I wrote a script that runs as a daemon, and that does just
that -

On Tue, Mar 28, 2017 at 10:43 PM, Devin Acosta <devin at>

> I am trying to get to where I can launch Varnish Cache in my environment.
> One of the challenges I guess that I am trying to figure out is that
> currently if a request is a HIT it never logs to the backend server the
> requests that it processed, therefore it messes up my Web Statistics. I see
> that I can use "varnishncsa" which will cause it log onto a file on the
> local machine that Varnish is running on, however is there a cleaner way to
> get my web statistics so that it's accurate, other than trying to pull logs
> from both the backend server and the varnish server and combine them
> together?
> --
> Devin Acosta
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list