Varnish HIT/MISS Web Statistics Question

Guillaume Quintard guillaume at
Wed Mar 29 09:32:24 CEST 2017

Hello Devin,

varnishncsa is able to return all the client requests it received (-c) as
well as all the backend requests it sent (-b), combining those to two would
give you the complete picture.

Guillaume Quintard

On Wed, Mar 29, 2017 at 7:00 AM, Andrei <lagged at> wrote:

> 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>
> wrote:
>> 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
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list