unique request ids

Mit Rowe mit at stagename.com
Wed Nov 2 21:43:20 CET 2011

Hi Per,

That's looks promising, i could save the X-Varnish header in the logs and
during the import strip off the second number.

Is that a sequential number or a random number?
What is its range?

On Wed, Nov 2, 2011 at 4:27 PM, Per Buer <perbu at varnish-software.com> wrote:

> Hi Mit,
> On Wed, Nov 2, 2011 at 8:03 PM, Mit Rowe <mit at stagename.com> wrote:
>> 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?
> There is a request ID, in Varnishlog you'll see it as the last number in
> the ReqStart lines ie.
>     1932 ReqStart     c 54471 1236808814
> You could probably extract it from the X-Varnish header, it will be the
> first of one or two numbers in that header.
> --
> Per Buer, CEO
> Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
> *Varnish makes websites fly!*
> Whitepapers <http://www.varnish-software.com/whitepapers> | Video<http://www.youtube.com/watch?v=x7t2Sp174eI> |
> Twitter <https://twitter.com/varnishsoftware>

Will 'Mit' Rowe
mit at stagename.com <josh at stagename.com>
Twitter: @stagename

*The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of this
information by persons or entities other than the intended recipient is
prohibited. If you received this transmission in error, please contact the
sender and delete all material contained herein from your computer.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111102/d578171f/attachment-0003.html>

More information about the varnish-misc mailing list