Append uniqueid to a http request at varnish

Guillaume Quintard guillaume.quintard at gmail.com
Wed Apr 24 19:41:57 UTC 2024


Hi Uday,

I feel like we've explored this last year:
https://varnish-cache.org/lists/pipermail/varnish-misc/2023-May/027238.html

I don't think the answer has changed much: vmod-uuid is your best bet here.

Please let me know if I'm missing some requirements.

Kind regards,

-- 
Guillaume Quintard


On Wed, Apr 24, 2024 at 4:26 AM Uday Kumar <uday.polu at indiamart.com> wrote:

> Hello all,
>
> We follow below architecture in our production environment:
> User request ---> Varnish ----> Tomcat Backend
>
> We have a requirement of generating an unique id at varnish that can be
> appended to a request url.
> So that it can be propagated to the backend and also will be useful in
> tracking errors efficiently
>
> varnish version used: varnish-5.2.1
>
> Example:
> original request:
> /search/test?q=bags&source=mobile
>
> After appending unique id [This needs to be sent to backend and to be
> stored in varnish logs]:
> /search/test?q=bags&source=mobile&uniqueid=abc123
>
> Please help us know if there is any way to do this at varnish
>
> *Thanks & Regards,*
> *Uday Kumar*
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20240424/05f5882d/attachment.html>


More information about the varnish-misc mailing list