I have been running FreeBSD with HAProxy as my reverse proxy for a while. Recently I got my ELK stack up and running, so now I want to send my HAProxy log to logstash using filebeats.
But now I noticed that my HAProxy instance is not logging to my log file, /var/log/haproxy.log
/usr/local/etc/haproxy.conf
/usr/local/etc/syslog.d/haproxy.conf
I do receive messages when HAProxy is starting/stopping in /var/log/messages. But there is no /var/log/haproxy.log, using debug I thought there should be something logging, but I get nothing.
I recently updated my FreeBSD server to 12.1-RELEASE-p8 and I am running HAProxy to version 2.1.7 2020/06/09
So what am I missing to log the traffic going through my HAProxy server?
But now I noticed that my HAProxy instance is not logging to my log file, /var/log/haproxy.log
/usr/local/etc/haproxy.conf
Code:
lobal
maxconn 4096
user www
group www
pidfile /var/run/haproxy.pid
log /dev/log local0 debug
daemon
tune.ssl.default-dh-param 2048
defaults
mode http
log global
option httplog
timeout connect 5s
timeout client 30s
timeout server 30s
...
/usr/local/etc/syslog.d/haproxy.conf
Code:
# HAProxy log
local0.* /var/log/haproxy.log
I do receive messages when HAProxy is starting/stopping in /var/log/messages. But there is no /var/log/haproxy.log, using debug I thought there should be something logging, but I get nothing.
I recently updated my FreeBSD server to 12.1-RELEASE-p8 and I am running HAProxy to version 2.1.7 2020/06/09
So what am I missing to log the traffic going through my HAProxy server?