Project

General

Profile

Actions

Regression #14764

open

HAProxy local syslog not working

Added by Michael Vincent about 1 year ago. Updated 6 months ago.

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:

  1. Edit /etc/defaults/rc.conf (Diagnostics -> Edit File).
  2. Change syslogd_flags="-s" to syslogd_flags="-s -b localhost -C"
  3. 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

Actions #2

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

Also available in: Atom PDF