HAProxy community

Separate error files for http status codes


Hello Guys,

We want to generate separate error files as per http status codes. please suggest me, here is the link https://gist.github.com/junaid-malik-confiz/88e9fe4127cd524148bfc1c7a5167374 of my haproxy configurations.



Use the errorfile directive:



errorfile behaviour is different as it show the specified file to end-user in case user receive different error. We are already using this.

Actually we want to aggregate requests by their status codes, we need report at day end with following contents
200 - 10k
500 - 10
503 - 3
404 - 5
301 - 3


I suggest you aggregate this data from your log files.