2017-03-31 2 views
1

Ich versuche, HAProxy zu TCP-Verkehr zu protokollieren, die ich gemacht habe, ohne Erfolg. Hier sind meine confs:HAProxy wird nur Startmeldung protokollieren

/etc/haproxy/haproxy.cfg

global 
    log /var/lib/haproxy/dev/log local0 debug 
    chroot /var/lib/haproxy 
    maxconn 2000 
    user haproxy 
    group haproxy 

defaults 
    log /var/lib/haproxy/dev/log local4 debug 
    mode tcp 
    option tcplog 
    option dontlognull 
    retries 3 
    option redispatch 
    timeout connect 5000 
    timeout client 10000 
    timeout server 10000 

listen sco 0.0.0.0:80 
    log /var/lib/haproxy/dev/log local4 debug 
    mode tcp 
    stats enable 
    stats uri /haproxy?stats 
    balance roundrobin 

cookie SERVERID insert indirect nocache 
    server test11 172.21.0.3:8888 check cookie test11 
    server test12 172.21.0.2:8888 check cookie test12 

/etc/rsyslog.d/49-haproxy.conf

$ModLoad imudp 
$UDPServerAddress 127.0.0.1 
$UDPServerRun 514 

local0.* -/var/log/haproxy/haproxy_0.log 
local4.* -/var/log/haproxy/haproxy_4.log 
if ($programname == 'haproxy') then -/var/log/haproxy/haproxy.log 
& ~ 

Der Ausgang I erhalten, ist nur die Proxy Startlinie.

/var/log/haproxy/haproxy.log

Mar 31 18:23:19 74f09d6f9f70 haproxy[27]: Proxy sco started. 

/var/log/haproxy/haproxy_4.log

Mar 31 18:23:19 74f09d6f9f70 haproxy[27]: Proxy sco started. 

erzeugte ich etwas Verkehr. HAProxy leitet es korrekt um, protokolliert aber nichts. Ich frage mich, was vor sich geht.

Antwort