Actions
Regression #14764
openHAProxy local syslog not working
Status:
Confirmed
Priority:
Normal-package
Assignee:
-
Category:
haproxy
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
2.7.0
Affected Plus Version:
23.05.1
Affected Architecture:
All
Description
HAProxy package v0.63_1
Setting the syslog host to /var/run/log
in the HAProxy settings doesn't produce any entries in the pfSense system logs.
Following the suggestion in this post fixes the issue by making syslogd listen to a UDP socket:
- Edit
/etc/defaults/rc.conf
(Diagnostics -> Edit File). - Change
syslogd_flags="-s"
tosyslogd_flags="-s -b localhost -C"
- Restart the syslogd service (Status -> Services).
They also reference this forum post with more details:
https://forums.freebsd.org/threads/haproxy-not-logging.76876/#post-477067
Updated by Michael Vincent about 1 year ago
Discussion thread: https://forum.netgate.com/topic/182508/haproxy-local-syslog-not-working
Updated by Danilo Zrenjanin 6 months ago
- Status changed from New to Confirmed
I can confirm that logging into the local syslog is not functioning as expected.
The recommended workaround has resolved the issue. After making the recommended edits to the /etc/defaults/rc.conf file, the logs started to appear.
Jun 1 18:53:43 pfSense haproxy[94640]: Connect from 192.168.33.12:52095 to 192.168.33.203:80 (Front1/HTTP) Jun 1 18:55:52 pfSense haproxy[94640]: Connect from 192.168.33.12:52116 to 192.168.33.203:80 (Front1/HTTP)
Tested against:
24.03-RELEASE (amd64) built on Mon May 13 12:17:00 UTC 2024 FreeBSD 15.0-CURRENT
haproxy net 0.63_3
Actions