Skip to main content
Sumo Logic

HAProxy

HAProxy

HAProxy is open source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications that spreads requests across multiple servers.

The Sumo Logic App for HAProxy is a unified logs and metrics app that helps you monitor the availability, performance, and health of your HAProxy cluster. Preconfigured dashboards provide insights into active servers, visitor locations, sessions, errors, response time, and throughput.

Log Types 

The HAProxy logs are generated in files as configured in the configuration file /etc/haproxy/haproxy.cfg. For more details on HAProxy logs, see this link.

The Sumo Logic App for HAProxy supports metrics generated by the HAProxy plugin for Telegraf. The app assumes prometheus format Metrics.

Sample Log Message

Kubernetes:

{
  "timestamp": 1620894084572,
  "log": "<150>May 13 08:21:20 haproxy[9]: 127.0.0.1:38718 stats stats/<STATS> 0/0/0/0/0 200 3926 - - LR-- 1/1/0/0/0 0/0 \"GET /haproxy?stats/;csv HTTP/1.1\"",
  "stream": "stdout",
  "time": "2021-05-13T08:21:20.005706219Z"
}

Non-Kubernetes:

May 13 08:24:43 localhost haproxy[21813]: 27.2.81.92:64274 [13/May/2021:08:24:43.921] web-edupia.vn-443~ cluster-host-service.edupia.vn/172.25.80.119 64/0/0/1/66 200 629 - - ---- 63/62/2/1/0 0/0 "POST /service/words/info HTTP/1.1"