@BlackAdderDK wrote:
Hi
I’m interesting in logging http headers, in order to log Source IP etc.
My “/etc/rsyslog.d/haproxy.conf”
$ModLoad imudp.so
$UDPServerAddress 127.0.0.1
$UDPServerRun 514local0.* /var/log/haproxy-traffic.log
local0.notice /var/log/haproxy-admin.logThe log part of haproxy.conf
global
log 127.0.0.1:514 local0defaults
log global
option httplog
option dontlognullAnd finally the headers I wan’t to capture:
frontend MyFrontend
mode http
option forwardfor
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-MS-Forwarded-Client-IP %[src]In advance, thanks
'Adder
Posts: 1
Participants: 1