[Varnish] #1803: Varnishncsa truncated referer
Varnish
varnish-bugs at varnish-cache.org
Mon Oct 19 12:22:44 CEST 2015
#1803: Varnishncsa truncated referer
---------------------+---------------------
Reporter: nixmind | Type: defect
Status: new | Priority: highest
Milestone: | Component: build
Version: unknown | Severity: normal
Keywords: |
---------------------+---------------------
I have a question concerning varnish and varnishncsa.
In fact I've set up varnishncsa to log requests with this log format :
{{{
LOG_FORMAT="%{X-Forwarded-For}i %l %u %t \"%r\" %s %b \"%{Referer}i\"
\"%{User-agent}i\""
}}}
But for long **refers**, I noticed that they are truncated, and when
checked they are all limited to **247** characters.
I've googled for a long time to figure out what can be the problem, but I
didn't find a right answer.
Do someone have ever have the issue, and can someone tell me how
varnishncsa works in depth, and this issue can be solved
please?Varnishncsa truncated referer
Not all the log entry is truncated, but only the referer field.
By looking the varnishncsa source code I noticed the function parse_format
uses a static buffer of **256** octets. Is there where the size limit is
set?
Thank in advance for your help.
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list