HAProxy HTTP Log Parser: Timers and Termination State Decoder

Parses HAProxy HTTP logs and explains termination flags such as sH-- and SC--.

Use the tool

Why this tool exists

The termination state shows why a session ended: a client abort, a server timeout, a refused connection. It is the fastest way to tell a slow backend from a dead one, but the letters are hard to remember.

The first two letters are decoded from the HAProxy configuration manual, section 8. Timers are in milliseconds and -1 means the stage was not reached.

How to use it

  1. Paste httplog lines from syslog or haproxy.log.
  2. Filter by status, for example 5xx.
  3. Read the decoded termination states.
  4. Check timers and queue waits in the table.

Frequently asked questions

Why is TR sometimes -1?

The request was aborted before a full request arrived.

Are the cookie letters decoded?

No. Only the first two letters. The third and fourth are shown as written.

What if some lines do not match?

They are skipped and the result says how many. TCP-mode and custom log-format lines are not supported.

Is my log uploaded?

No. Everything is processed in your browser and nothing is sent. Logs can hold IP addresses and tokens, so the page does not write them into the address bar.