Figured some people will find this useful, until varnishncsa gets full LogFormat support.<br><br>I've expanded Emil Isberg's initial path on the following items:<br><br>List of what I added/fixed:<br>
<br>
- Fixed segfault in %s,%>s, when these where not found in shmlog<br>
- Fixed segfault in %{VarnishR}i, when df_H, Protocol version, was not found, http defaults to HTTP/1.0<br>
- Added %D, ( proc_time + xmit_time ) in microseconds<br>
- Added $T, same as above, but in seconds<br>
- Added %V, faked as %{Host}i ( different meaning in apache, but usually meant as vhost )<br>
-
Added %{Age}i, age of object being served. Quite useful, as you can
graph things like average age of served pages, cache hit ratios, etc
etc.<br>
<br>
I attach a diff against stock 2.0.4 varnish, I've tested this against several multi-gigabyte varnish native logs, as well as have it run for a few days now, with no issues.<br><br>-Javier<br><h1 class="ha"><span id=":3fg" class="hP"><span class="il"><br>
</span></span></h1><br>