[Varnish] #1703: VLC_Log extended variables not showing in varnishncsa

Varnish varnish-bugs at varnish-cache.org
Wed Apr 15 15:19:40 CEST 2015


#1703: VLC_Log extended variables not showing in varnishncsa
-------------------+-------------------------
 Reporter:  tjay   |       Type:  defect
   Status:  new    |   Priority:  normal
Milestone:         |  Component:  varnishncsa
  Version:  4.0.3  |   Severity:  normal
 Keywords:         |
-------------------+-------------------------
 I have just upgrade from varnish 3 to varnish 4.0.3 and it seems the
 varnishncsa daemon can no longer access the VCL_Log variables.

 I am running this on FreeBSD10.1-RELEASE and using the varnish4 port from
 pkg.

 '''VCL config'''
 {{{
  std.log("backend_ip:" + beresp.backend.ip);
  std.log("backend_port:" + std.port(beresp.backend.ip));
 }}}

 I can see this working in the varnishlog.

 '''varnishlog -i VCL_Log'''
 {{{
 *   << BeReq    >> 163930
 -   VCL_Log        backend_ip:10.2.1.23
 -   VCL_Log        backend_port:80
 }}}

 But this does not work when i run varnishncsa

 '''varnishncsa -F "%{VCL_Log:backendip}x:%{VCL_Log:backend_port}x"'''
 {{{
 :
 :
 :
 :
 }}}

 '''Test case'''

 I have managed to replicate this on a brand new build FreeBSD and
 varnish4.

 This can be replicated with this vagrant test case.

 {{{
 git clone https://github.com/tjayl/varnishvcllogbug.git
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1703>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list