Append uniqueid to a http request at varnish

Uday Kumar uday.polu at indiamart.com
Wed Apr 24 11:23:58 UTC 2024


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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20240424/01ba070c/attachment.html>


More information about the varnish-misc mailing list