Reg: printing ReqURL two times in varnishlog
Guillaume Quintard
guillaume at varnish-software.com
Sat Mar 2 11:00:47 UTC 2019
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 <hetardik.p at gmail.com> 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
> 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/20190302/24d1e094/attachment-0001.html>
More information about the varnish-misc
mailing list