Varnish HIT/MISS Web Statistics Question

Guillaume Quintard guillaume at varnish-software.com
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 gmail.com> 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 - https://github.com/AndreiG6/vscp
>
> On Tue, Mar 28, 2017 at 10:43 PM, Devin Acosta <devin at pabstatencio.com>
> 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-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>
>
>
> _______________________________________________
> 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/20170329/bbf02bcf/attachment.html>


More information about the varnish-misc mailing list