HAProxy

HAProxy log parser

Paste lines from /var/log/haproxy.log or journalctl -u haproxy. One line is explained field by field; many lines get statistics: status codes, termination states, slowest requests and timings per backend. Nothing leaves your browser.

Up to 20,000 lines. The syslog prefix (date, host, haproxy[pid]:) is skipped.
Supported: the usual %ci %cp %tr %t %ft %b %s %TR %Tw %Tc %Tr %Ta %Tt %ST %B %tsc %ts %ac %fc %bc %sc %rc %sq %bq %hr %hs %r %HM %HU %HV %ID and %[sample], with %{+Q} quoting.

Timers

TR request headers received Tw waiting in queue Tc TCP connect to server Tr server response headers Td data transfer (Ta โˆ’ the rest)

httplog shows TR/Tw/Tc/Tr/Ta in milliseconds; Ta is the whole active request. Before 1.9 the same place held Tq/Tw/Tc/Tr/Tt: Tq included the keep-alive idle time and Tt the whole session. tcplog shows Tw/Tc/Tt. -1 means the phase never completed; that, with the termination state, tells where a request died.

Termination states

Four characters in httplog (tsc), two in tcplog (ts): who or what ended the session, in which phase, then the persistence-cookie status on the client and server side.

Common combinations

StateMeaning