Hi Mit,<br><br><div class="gmail_quote">On Wed, Nov 2, 2011 at 8:03 PM, Mit Rowe <span dir="ltr"><<a href="mailto:mit@stagename.com">mit@stagename.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)"><br></div><div style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)">I was wondering... does varnish internally generate a reliably random unique value for each request (similar to mod_unique_id in apache or a uuid/guid), and if so is there a way that i can write it out to my logs, perhaps via an insertion into a request header and using the %{HEADER}i macro in varnishncsa? </div>
</blockquote><div><br></div><div>There is a request ID, in Varnishlog you'll see it as the last number in the ReqStart lines ie.</div><div><br></div><div> 1932 ReqStart c 127.0.0.1 54471 1236808814</div><div><br>
</div><div>You could probably extract it from the X-Varnish header, it will be the first of one or two numbers in that header.</div><div><br></div></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>
Per Buer, CEO<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br><i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>
<br></div></div><br>