Press "Enter" to skip to content

haproxy 1.8配置日志输出路径

/etc/rsyslog.d/49-haproxy.conf添加如下内容:
 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
:programname, startswith, "haproxy" {
  /var/log/haproxy.log
  stop
}

Be First to Comment

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注