diff --git a/haproxy.cfg b/haproxy.cfg index cff282800..99673846f 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -10,20 +10,15 @@ # Global settings #--------------------------------------------------------------------- global - # to have these messages end up in /var/log/haproxy.log you will - # need to: - # - # 1) configure syslog to accept network log events. This is done - # by adding the '-r' option to the SYSLOGD_OPTIONS in - # /etc/sysconfig/syslog - # - # 2) configure local2 events to go to the /var/log/haproxy.log - # file. A line like the following can be added to - # /etc/sysconfig/syslog - # - # local2.* /var/log/haproxy.log - # - log 127.0.0.1 local2 + # log to /dev/log + log /dev/log daemon + + # log to local syslogd from chroot over UDP + #log 127.0.0.1:514 local2 + #log tcp@127.0.0.1:514 local2 notice + + # send log to systemd-journald + #log stdout format short daemon chroot /var/lib/haproxy pidfile /run/haproxy.pid