Only log successfull connections, nothing else

Hello!

We have a problem dealing with huge amount of logs. We have to log every successfull request as we need it to count the downloaded and uploaded bytes. The problem we have is that people that access our haproxy frontend with a invalid httpauth (wrong user/password, 407) also gets logged.

We have noticed that almost 30-40% of our entire logs are invalid http auth requests, and as these are not important for us we would like to exclude them from getting logged.
We are using the functions:

option dontlognull
option http-ignore-probes

already.

I don’t think haproxy can be configured to exclude specific errors codes from logging, this should really be solved at the syslog server.