On Mon, Dec 8, 2014 at 10:20 PM, Alexander Minza
<alexander.mi...@gmail.com> wrote:
> Alexander Minza <alexander.minza@...> writes:
>
>> However, I would like to log just the errors, thus after setting the log 
>> level
>> to err it seems that it is logging again all the requests, not just those
>> resulting in a  HTTP error from the backend response.
>
> Adding the following lines to the backend config section:
>
>         no log
>         log /dev/log local1 err
>
> does not seem to have any effect - the log is still populated with HTTP 200 OK
> requests.
>
>

There is a nice option called "dontlog-normal" which logs only errors.
http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#option%20dontlog-normal

Baptiste

Reply via email to