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 <[email protected]> wrote: > Hi Mit, > > On Wed, Nov 2, 2011 at 8:03 PM, Mit Rowe <[email protected]> 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 127.0.0.1 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 Stagename* *1-866-326-3098 [email protected] <[email protected]> www.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.*
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
