Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4714

Prolem with separate logging

$
0
0

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:

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

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
$UDPServerAddress 127.0.0.1
$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.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>