Re: Log IP and port from haproxy to server

2020-03-03 Thread Pepe Charli
Thanks
I was not looking at the proper documentation.

El mar., 3 mar. 2020 a las 17:33, Tim Düsterhus () escribió:
>
> Pepe,
>
> Am 03.03.20 um 17:28 schrieb Pepe Charli:
> > In "mode tcp", Is it possible to log the IP and port from haproxy to
> > server (haproxyIP and haproxPort)?
> >
> > clientIP:ClientPort- > frontendIP:frontendPort
> > haproxyIP:haproxyPort -> serverIP:serverPort
> >   %ci:%cp  %fi:%fp
> >  %??:%??  %si:%sp
> >
>
> This should be possible with %bi and %bp:
>
> >   |   | %bi  | backend_source_ip   (connecting address)  | IP  |
> >   |   | %bp  | backend_source_port (connecting address)  | numeric |
> (from http://cbonte.github.io/haproxy-dconv/2.1/configuration.html#8.2.4)
>
> Best regards
> Tim Düsterhus



Re: Log IP and port from haproxy to server

2020-03-03 Thread Tim Düsterhus
Pepe,

Am 03.03.20 um 17:28 schrieb Pepe Charli:
> In "mode tcp", Is it possible to log the IP and port from haproxy to
> server (haproxyIP and haproxPort)?
> 
> clientIP:ClientPort- > frontendIP:frontendPort
> haproxyIP:haproxyPort -> serverIP:serverPort
>   %ci:%cp  %fi:%fp
>  %??:%??  %si:%sp
> 

This should be possible with %bi and %bp:

>   |   | %bi  | backend_source_ip   (connecting address)  | IP  |
>   |   | %bp  | backend_source_port (connecting address)  | numeric |
(from http://cbonte.github.io/haproxy-dconv/2.1/configuration.html#8.2.4)

Best regards
Tim Düsterhus



Log IP and port from haproxy to server

2020-03-03 Thread Pepe Charli
In "mode tcp", Is it possible to log the IP and port from haproxy to
server (haproxyIP and haproxPort)?

clientIP:ClientPort- > frontendIP:frontendPort
haproxyIP:haproxyPort -> serverIP:serverPort
  %ci:%cp  %fi:%fp
 %??:%??  %si:%sp


Thanks,