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.p...@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@varnish-cache.org > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc