add more examples for logging to default config
This commit is contained in:
parent
60d0aa77b1
commit
b6962110af
23
haproxy.cfg
23
haproxy.cfg
@ -10,20 +10,15 @@
|
|||||||
# Global settings
|
# Global settings
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
global
|
global
|
||||||
# to have these messages end up in /var/log/haproxy.log you will
|
# log to /dev/log
|
||||||
# need to:
|
log /dev/log daemon
|
||||||
#
|
|
||||||
# 1) configure syslog to accept network log events. This is done
|
# log to local syslogd from chroot over UDP
|
||||||
# by adding the '-r' option to the SYSLOGD_OPTIONS in
|
#log 127.0.0.1:514 local2
|
||||||
# /etc/sysconfig/syslog
|
#log tcp@127.0.0.1:514 local2 notice
|
||||||
#
|
|
||||||
# 2) configure local2 events to go to the /var/log/haproxy.log
|
# send log to systemd-journald
|
||||||
# file. A line like the following can be added to
|
#log stdout format short daemon
|
||||||
# /etc/sysconfig/syslog
|
|
||||||
#
|
|
||||||
# local2.* /var/log/haproxy.log
|
|
||||||
#
|
|
||||||
log 127.0.0.1 local2
|
|
||||||
|
|
||||||
chroot /var/lib/haproxy
|
chroot /var/lib/haproxy
|
||||||
pidfile /run/haproxy.pid
|
pidfile /run/haproxy.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user