We have an application behind HAProxy that uses fairly large cookies. When the browser sends back this large cookie, it is sometimes large enough to cause the request sent by the browser to exceed HAProxy BUFSIZE. We need to a way to identify exactly how many requests are getting dropped due to hitting the BUFSIZE limit.
Is there a way to accurately get a count of these from HAProxy logs? According to the documentation, requests exceeding BUFSIZE will get logged as 400, but there are also many other causes for HTTP 400, so that doesn’t work very well. From observing out logs, we also see a termination state of PR–, but we’re not sure what else could cause those, too.
We are using HAProxy 1.6.4