HAProxy
HAProxy is a high-performance TCP/HTTP load balancer and proxy. This source collects HAProxy logs by tailing the log files HAProxy writes (typically routed through syslog/rsyslog), and optionally parses each entry into structured fields.
Supported Telemetry Types
Linux
✓
Windows
✓
macOS
✓
Prerequisites
HAProxy logs through syslog, so logging must be configured before any file exists to tail:
Configure HAProxy to emit logs. In the
globalsection set alogtarget, and addlog globalto thedefaults,frontend,backend, orlistensections. Addoption httplog(HTTP mode) oroption tcplog(TCP mode) for detailed request logging. See Introduction to HAProxy Logging and the HAProxy Configuration Manual.Configure rsyslog (or your syslog daemon) to route those messages to a file on disk. The default path this source tails is
/var/log/haproxy/haproxy.log; adjust File Path(s) to match wherever your syslog configuration writes HAProxy logs.The collector must run on a host that can read those log files. Ensure the collector's user has read permission on the configured paths.
Configuration

Logs
File Path(s)
Strings
No
/var/log/haproxy/haproxy.log
File paths to tail for logs.
Advanced
Timezone
Timezone
No
UTC
The timezone to use when parsing timestamps.
Start At
Enum: beginning, end
No
end
Start reading logs from beginning or end.
Parse
Boolean
No
true
Parses the log fields into structured data.
Examples
Tail HAProxy logs from a custom path
This source tails a non-default HAProxy log path and reads existing log content from the beginning of the file on first start.
Configuration Tips
Set Start At to
beginningwhen you need to backfill existing log content on first collection; leave it atendto ingest only new entries.Keep Parse enabled to extract structured fields from each log line. Disable it only if you intend to do all parsing downstream.
Match Timezone to the timezone HAProxy/syslog writes timestamps in so parsed event times are correct.
Troubleshooting
No logs are collected
Symptom: The source is running but no log records arrive.
Solution: Confirm HAProxy logging is actually enabled and that syslog/rsyslog is writing to a file. Verify the file exists at the configured File Path(s) and that the collector user can read it. If the file already contained data before collection started, set Start At to beginning.
Logs arrive but fields are not parsed
Symptom: Records are ingested as raw text without structured attributes.
Solution: Ensure Parse is enabled. Parsing expects HAProxy's standard log output; if HAProxy uses a heavily customized log-format, fields may not match the expected structure.
Timestamps are off by hours
Symptom: Parsed event timestamps are shifted from the actual time.
Solution: Set Timezone to the timezone in which HAProxy/syslog records its timestamps.
Standalone Source
Related Resources
Last updated
Was this helpful?