没有有关断开HAProxy(TCP IP)的日志

时间:2018-12-04 07:54:02

标签: tcp haproxy

问题:在cat / var / log / haproxy.log重定向日志中,仅显示连接,并且记录重复,如何制作更完整的日志?配置/etc/haproxy/haproxy.cfg:

global
 daemon
 maxconn 8192
 log 127.0.0.1 local1
 log 127.0.0.1 local1 info
 log 127.0.0.1 local1 debug
 chroot /var/lib/haproxy
 pidfile /var/run/haproxy.pid
 stats socket /var/lib/haproxy/stats group haproxy mode 660 level admin

defaults
 log     global
 mode    tcp
 balance leastconn
 timeout client      14400s
 timeout server      14400s
 timeout connect     14400s
 retries 3
 option  dontlognull


listen sborka_30001
 log    global
 mode                tcp
 option              tcplog
# option             tcpka
 option              logasap
# default_backend     bck

0 个答案:

没有答案