[Varnish 3.0.3 - 3.0.4] Logging client source port
Caio Tedim
caiotedim at gmail.com
Mon Sep 2 21:12:05 CEST 2013
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 <jos at dwim.org> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20130902/de7fdbb7/attachment.html>
More information about the varnish-dev
mailing list