Hi All,
I started working on haproxy while i am having doubt on how to write the haproxy frontend and backend logs into a local log files to know what logs are being sent through haproxy.
Can someone help me how to do that? Thanks.
Below is my sample haproxy configuration.
global
log localhost local0
daemon
defaults
log global
mode tcp
balance roundrobin
option tcplog
timeout connect 5s
timeout client 50s
timeout server 50s
retries 3
maxconn 15000
IN
#Accepts logs from TCP 1514 port
frontend server_in_1514
bind *:1514
use_backend b_server_in_1514
backend b_server_in_1514
option tcp-check
server :1514 check port 1514 send-proxy
Stat
listen stats
bind :9000
mode http
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /haproxy_stats
stats auth admin:nimda
1 post - 1 participant