Im Paket

Code: Alles auswählen
# Create an additional socket in haproxy's chroot in order to allow logging via
# /dev/log to chroot'ed HAProxy processes
$AddUnixListenSocket /var/lib/haproxy/dev/log
# Send HAProxy messages to a dedicated logfile
if $programname startswith 'haproxy' then /var/log/haproxy.log
&~
Code: Alles auswählen
# 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-traffic.log
local0.notice /var/log/haproxy-admin.log
Daher meine Frage: warum gibt es die /etc/rsyslog.d/49-haproxy.conf überhaupt und warum hat sie ausgerechnet den Inhalt?
Ich hoffe, das ist keine dumme Frage, ich kenn mich nicht sehr gut aus mit Webservern...
