<div dir="ltr">Hi Albert,<div><br></div><div>I'm not familiar to w3c logging, but it looks to me that you are looking for varnishncsa. The format string can be customized and the '-q' parameter will allow you to filter out unwanted request.</div><div><br></div><div>Also, you can use the std vmod and std.log() to fill a header with HIT|MISS|PASS and retrieve that in varnishncsa.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Tue, May 24, 2016 at 12:47 PM, Albert Tollkuçi <span dir="ltr"><<a href="mailto:albert.tollkuci@gmail.com" target="_blank">albert.tollkuci@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">Hello,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">I'm new to varnish and I'm setting up for some of the websites I manage.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">One of the difficulties I'm having is to debug it. I know that there's varnishlog, but it would be really helpful to have something similar to W3C logging for all request served by varnish. In addition to standard fields, there will be one extra field to show if the request was served from cache, from back-end, etc.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">Is there something like this or a way to have this kind of log?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">Thanx,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394">Albert</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:#0b5394"><br></div><div><br></div>-- <br><div><div dir="ltr"><div><div><span style="font-size:small;color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif">Web: </span><a href="http://www.tollkuci.com/" style="font-size:small;font-family:'trebuchet ms',sans-serif" target="_blank">http://www.tollkuci.com</a><br></div><div><span style="color:rgb(61,133,198);font-family:'trebuchet ms',sans-serif;font-size:small">Follow me on: </span><a href="http://www.linkedin.com/in/alberttollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2flinkedin_icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">LinkedIn</a> <a href="https://plus.google.com/+AlbertTollku%C3%A7i/posts" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fgoogleplus-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Google+</a> <a href="https://www.facebook.com/albert.tollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fFacebook_Icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Facebook</a> <a href="https://twitter.com/AlbertTollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fTwitterIcon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Twitter</a> <a href="http://careers.stackoverflow.com/atollkuci" style="font-family:Arial,Verdana,sans-serif;font-size:12px;margin:0px;padding:0px;color:rgb(31,162,225);text-decoration:none" target="_blank"><img alt="" height="24" src="http://www.tollkuci.com/blog/IMAGES%2f2014%2f02%2fcareers-icon.png.jpgx" width="24" style="margin:2px;padding:0px;vertical-align:middle">Career 2.0</a></div><font style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"><hr style="color:rgb(34,34,34);font-family:Arial,Verdana,sans-serif;font-size:12px"><br></font><font style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"></font></div><font style="font-family:trebuchet ms,sans-serif;color:rgb(102,102,102)" size="2">Imagination is more important than knowledge<br><i>Albert Einstein</i><br><br>The three chief virtues of a programmer are: Laziness, Impatience and Hubris<br><i>Larry Wall</i><br><br>Men are basically smart or dumb and lazy or ambitious. The dumb and ambitious ones are dangerous and I get rid of them. The dumb and lazy ones I give mundane duties. The smart ambitious ones I put on my staff. The smart and lazy ones I make my commanders<br><i>Erwin Rommel</i><br><br></font><div><font style="font-family:trebuchet ms,sans-serif;color:rgb(102,102,102)" size="2"><div>The best programmers are not marginally better than merely good ones.  They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability.</div><div><i>Randall E. Stross</i></div><div><br></div><div><div>Measuring programming progress by lines of code is like measuring aircraft building progress by weight.</div><div><i>Bill Gates</i></div></div></font></div></div></div>
</div>
<br>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></blockquote></div><br></div>