Mailing List Archive

#1803: Varnishncsa truncated referer
#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

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
---------------------+----------------------
Reporter: nixmind | Owner:
Type: defect | Status: new
Priority: highest | Milestone:
Component: build | Version: unknown
Severity: normal | Resolution:
Keywords: |
---------------------+----------------------

Comment (by lkarsten):

Hi.

Can you increase the vsl_reclen parameter and see if that solves your
issue?

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+-----------------------
Reporter: nixmind | Owner:
Type: defect | Status: needinfo
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Changes (by lkarsten):

* status: new => needinfo
* priority: highest => normal
* component: build => varnishncsa


--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+-----------------------
Reporter: nixmind | Owner:
Type: defect | Status: needinfo
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------

Comment (by nixmind):

Hi,

Do you mean the **shm_reclen** or **vsl_reclen** paramter?

I check with the **param.show** command but I didn't see any
**vsl_reclen** parameter, even if it's described in the man page.

Should I set this from **varnishadm** command line or in a file?

Thanks.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:3>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+-----------------------
Reporter: nixmind | Owner:
Type: defect | Status: needinfo
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------

Comment (by nixmind):

Appologises,

In fact I'm using varnish version **3.0.2** because I'm on Debian Wheezy.

So the name of the parameter is still **shm_reclen** in this version of
the program.

Sorry

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:4>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+-----------------------
Reporter: nixmind | Owner:
Type: defect | Status: needinfo
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------

Comment (by nixmind):

It seems it works,

I did the modification from the command line.

I will apply permanently and restart the service. I will then look for a
little few tile if it works fine, and then confirm here.

Thanks.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:5>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+-----------------------
Reporter: nixmind | Owner:
Type: defect | Status: needinfo
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------

Comment (by nixmind):

Hi,

Please I would like to know if there is a way to change the **shm_reclen**
parameter permanently in a file.

I try to put it in **/etc/default/varnish** like this :


{{{
shm_reclen = 1024
}}}

But it didn't change anything. As it is a '''run time parameter''', does
it means it should only be set at run time?

Thanks.

Regards.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:6>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+-----------------------
Reporter: nixmind | Owner:
Type: defect | Status: needinfo
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------

Comment (by gquintard):

Hi nixmind,

This parameter, as all the others in varnishadm can be set at launch time
using "-p param=value" in the varnishd command.

If you have /etc/defaulr/varnish, I guess you have to add it to the
DAEMON_OPTS variable.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:7>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+----------------------
Reporter: nixmind | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution: invalid
Keywords: |
-------------------------+----------------------
Changes (by fgsch):

* status: needinfo => closed
* resolution: => invalid


--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:8>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs
Re: #1803: Varnishncsa truncated referer [ In reply to ]
#1803: Varnishncsa truncated referer
-------------------------+----------------------
Reporter: nixmind | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: varnishncsa | Version: unknown
Severity: normal | Resolution: invalid
Keywords: |
-------------------------+----------------------

Comment (by nixmind):

Replying to [comment:8 fgsch]:

Hi,

Appologises, I forgot to close the ticket.

I just want to that setting vsl_reclen solved my problem.

Regards.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1803#comment:9>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs