Re: Disable HTTP logging for specific backend in HAProxy

2014-12-09 Thread Alexander Minza
Baptiste writes: > 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 The tricky aspect is that this option cannot be set for specific backends. How does one disable "normal logging" for a

Re: Disable HTTP logging for specific backend in HAProxy

2014-12-08 Thread Baptiste
On Mon, Dec 8, 2014 at 10:20 PM, Alexander Minza wrote: > 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 res

Re: Disable HTTP logging for specific backend in HAProxy

2014-12-08 Thread 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:

Re: Disable HTTP logging for specific backend in HAProxy

2014-12-08 Thread Alexander Minza
Baptiste writes: > You don't disable logging in a backend, since the frontend is > responsible to generate the log line. > > If you don't want to log static content, you can do something like this: > > acl static ###put your acl rule here > http-request set-log-level silent if static > > B

Re: Disable HTTP logging for specific backend in HAProxy

2014-12-08 Thread Baptiste
On Mon, Dec 8, 2014 at 1:29 PM, Jonathan Matthews wrote: > On 7 December 2014 at 20:54, Alexander Minza > wrote: >> How does one adjust logging level or disable logging altogether for specific >> backends in HAProxy? >> >> In the example below, both directives "http-request set-log-level err" an

Re: Disable HTTP logging for specific backend in HAProxy

2014-12-08 Thread Jonathan Matthews
On 7 December 2014 at 20:54, Alexander Minza wrote: > How does one adjust logging level or disable logging altogether for specific > backends in HAProxy? > > In the example below, both directives "http-request set-log-level err" and > "no log" seem to have no effect - the logs are swamped with lin

Disable HTTP logging for specific backend in HAProxy

2014-12-07 Thread Alexander Minza
set-log-level err > no log Crosspost: http://serverfault.com/questions/649826/disable-http-logging-for-specific-backend-in-haproxy