Thanks for replying but %h works to remote host and not for remote port.
I´m using the follow line:
%t %h %m "/%{Host}i"%U%q %b %s %{Varnish:hitmiss}x %b %{Referer}i
I want to logging remote port, using varnishncsa. Below follow a line that
contains the information in varnishlog
10 SessionOpen c 10.133.133.110 50225 *:80
[]´s
Caio Tedim
On Mon, Sep 2, 2013 at 2:56 PM, Jos Boumans <[email protected]> wrote:
>
> 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
>
>
_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev