ReqURL gets printed every time you set req.url, so unless you don't modify it, you will have multiple lines.
To be fair, it looks like this is an issue with your log parser. Just ignore those lines if you've already seen one and you're done. On Fri, Mar 1, 2019, 22:47 Hardik <[email protected]> wrote: > Hi Team, > > we can see ReqURL is getting printed twice in varnish shm and so in > varnishlog. It is causing problems while processing this logs further. some > time it is very big URL and have parse twice. Is it possible to make it > print only once. or any other work around ? > > ** << Request >> 313464548 > -- Begin req 313464547 rxreq > -- Timestamp Start: 1548836427.883183 0.000000 0.000000 > -- Timestamp Req: 1548836427.883183 0.000000 0.000000 > -- ReqStart 127.0.0.1 16962 a3 > -- ReqMethod GET > *-- ReqURL /abc/xyz/image.jpeg* > -- ReqProtocol HTTP/1.1 > -- ReqHeader X-Forwarded-For: x.x.x.x > -- ReqHeader Host: aaa > -- ReqHeader Connection: close > -- ReqHeader accept: */* > -- ReqHeader x-playback-session-id: xyz > -- ReqHeader user-agent: AppleCoreMedia/1.0.0.16C101 (iPhone; U; CPU > OS 12_1_2 like Mac OS X; en_us) > -- ReqHeader accept-language: en-us > -- ReqHeader accept-encoding: identity > -- ReqHeader cookie: dtCookie==xyz > -- ReqUnset X-Forwarded-For: x.x.x.x > -- ReqHeader X-Forwarded-For: x.x.x.x, 127.0.0.1 > -- VCL_call RECV > -- VCL_Log x-xid:313464548 > -- VCL_Log req-source:Client > *-- ReqURL /abc/xyz/image.jpeg* > -- ReqHeader X-VCL-Host: aaa > -- VCL_Log checking aaa > -- ReqHeader aaa > > Waiting for reply. Thank you in Advance. > > - Hardik > _______________________________________________ > varnish-misc mailing list > [email protected] > https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
