Prolem with separate logging

Hi guys!

I have a little problem with logging. I tried to follow this( Introduction to HAProxy Logging - HAProxy Technologies ) article to set up separate logging on my instance but i have a problem. I can seprate the traffic and admin logs but in addition every logs go to syslog as well.
My haproxy config:

        log local0
        chroot /var/lib/haproxy
        stats socket ipv4@ level admin
        stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
        stats timeout 5m
        user haproxy
        group haproxy

rsyslog config:

# Create an additional socket in haproxy's chroot in order to allow logging via
# /dev/log to chroot'ed HAProxy processes
$ModLoad imuxsock
$AddUnixListenSocket /var/lib/haproxy/dev/log

# Send HAProxy messages to a dedicated logfile
#if $programname startswith 'haproxy' then /var/log/haproxy.log

# Collect log with UDP
$ModLoad imudp
$UDPServerRun 514

# Creating separate log files based on the severity
local0.* /var/log/haproxy/haproxy-traffic.log
local0.notice /var/log/haproxy/haproxy-admin.log

If you have any ideas, i welcome you.

Maybe you need to add a line with stop at the end?

local0.* stop


we use a pretty close config. At the end of our syslog config we have this line :

& stop

With this, logs should not be sent to syslog after being processed