[Varnish 3.0.3 - 3.0.4] Logging client source port

Jos Boumans jos at dwim.org
Mon Sep 2 19:56:31 CEST 2013


On 2 Sep 2013, at 06:30, Caio Tedim wrote:

> I´m facing some problem to logging client source port in varnishncsa.
> 
> Eg: httpd: %{remote}p 
>       nginx: $remote_port
> 
> Anyone know if it´s possible to logging this?

Yes it is; you want %h

See here for the full list of variables:

  https://www.varnish-cache.org/docs/3.0/reference/varnishncsa.html




More information about the varnish-dev mailing list