0

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?

Community
  • 1
  • 1
Mirac7
  • 1,566
  • 4
  • 26
  • 44
  • Did you restart haproxy after making the configuration change? –  Dec 02 '15 at 20:00
  • @corey112358 Yes, it restarts correctly but modifications to file don't impact how it works. Perhaps this config file is not the one read by haproxy? – Mirac7 Dec 02 '15 at 22:42

1 Answers1

1

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.

Community
  • 1
  • 1
Jiri Fiala
  • 1,400
  • 7
  • 10