I have a pretty basic setup w/ varnish load balancing infront of apache. <br><br>The problem I am experiencing is that the apache logs themselves seem *really* off (hit rates are nearly one order of magnitude low). So I examined the varnishlog(1) man pages... <br>
<br>Does anyone have a script that takes varnishlog output and munges it into something that looks combinedlog-ish? Queries to google-tube have not been useful.<br><br>Just for completeness my configs look like this: <br>
<br>--snip--snip--snip--<br># blatantly ripped off from supplied example++<br clear="all">backend default {<br> set backend.host = "<a href="http://10.80.80.252">10.80.80.252</a>";<br> set backend.port = "8080";<br>
}<br>sub vcl_recv {<br> if (req.url ~ "\.(css|js|jpg|JPG|png|gif|ico|mov|flv|swf|feed|atom|rss2)") {<br> lookup;<br> }<br><br><br> if (req.url ~ ".trackback.") {<br> error 503 "Request type not allowed.";<br>
}<br><br>}<br>sub vcl_pass {<br> pass;<br>}<br>sub vcl_hash {<br> set req.hash += req.url;<br> set req.hash += req.http.host;<br> hash;<br>}<br>sub vcl_hit {<br> if (!obj.cacheable) {<br>
pass;<br> }<br> deliver;<br>}<br>sub vcl_miss {<br> fetch;<br>}<br>sub vcl_fetch {<br> if (!obj.valid) {<br> error;<br> }<br> if (!obj.cacheable) {<br>
pass;<br> }<br> if (obj.http.Set-Cookie) {<br> pass;<br> }<br> insert;<br>}<br>sub vcl_deliver {<br> deliver;<br>}<br>sub vcl_timeout {<br> discard;<br>
}<br>--snip--snip--snip--<br><br>TIA,<br>--timball<br><br>-- <br> GPG key available on <a href="http://pgpkeys.mit.edu">pgpkeys.mit.edu</a><br>pub 1024D/511FBD54 2001-07-23 Timothy Lu Hu Ball <<a href="mailto:timball@tux.org">timball@tux.org</a>><br>
Key fingerprint = B579 29B0 F6C8 C7AA 3840 E053 FE02 BB97 511F BD54<br>