response time in varnishncsa

Frank Farmer frank at huddler-inc.com
Tue May 10 19:08:33 CEST 2011


This is a bit of a kludge, but I've been tracking these in my nginx access
log. I have nginx in front of varnish, primarily to gzip (at one point, ESI
and gzip were incompatible).  Nginx captures extra headers output by varnish
and write them to its own log.

example nginx log config line:

    log_format  main  '$host $remote_addr - $remote_user [$time_local]
"$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"
$upstream_response_time $upstream_http_x_cache';


On Fri, Oct 8, 2010 at 11:10 AM, Angelo Höngens <a.hongens at netmatch.nl>wrote:

> On 8-10-2010 18:59, Caunter, Stefan wrote:
> > Hit/miss is a vcl addition to vcl_deliver:
> >
> > sub vcl_deliver {
> > ..
>
> Stefan,
>
> Thanks for your response. I know I can output the hit/miss in the
> response headers (I already do), but I want the extra fields (time taken
> and 'action') in the varnishncsa output. I write all varnishncsa output
> of all nodes to a central logging server, and we want to do analysis on
> those log files later.
>
> Angelo.
>
>
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110510/91924255/attachment-0003.html>


More information about the varnish-misc mailing list