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
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user