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: