Reputation: 1646
I am trying to prevent logging 2xx responses from HAProxy on my Openshift Django server. I saw this question, but adding option dontlog-normal
(and leaving the rest of the file as it was) in haproxy/conf/haproxy.cfg
did not make a difference.
How can I stop 2xx response logging from HAProxy?
Upvotes: 0
Views: 157
Reputation: 1400
I think you are not referring to the HAproxy log itself, rather to a HTTP server log. The HAproxy seem to do a health check every 2 seconds, which results in having these simple requests logged (but the HAproxy is originator, not the logger). You may want to check this question (and the linked forum post) if you'd like to reduce the frequency of the checks.
In order not to log these completely, you would need to change the HTTP server logging configuration, which seems to be unavailable.
Upvotes: 1