Hi Martin,

On Thu, Jul 16, 2020 at 10:05:40AM +0300, Martin Grigorov wrote:
> 
> I am using such logging configuration (HAProxy built from master branch):
> 
> global
>   log stdout format raw local0 err
>   ...
> defaults
>   log global
>   option dontlog-normal
>   option httplog
>   option dontlognull
>   ...
> 
> But HAProxy still logs entries like the following:
> 
> 00000001:test_fe.clireq[001c:ffffffff]: GET /haproxy-load HTTP/1.1
> 00000002:test_fe.clihdr[001e:ffffffff]: host: 192.168.0.206:8080
> 00000006:test_fe.accept(0004)=0020 from [::ffff:192.168.0.72:46768]
> ALPN=<none>
> 00000001:test_fe.clihdr[001c:ffffffff]: host: 192.168.0.206:8080
> 00000002:test_fe.clihdr[001e:ffffffff]: content-type: application/json
> 00000004:test_fe.accept(0004)=0024 from [::ffff:192.168.0.72:46754]
> ALPN=<none>
> 00000005:test_fe.accept(0004)=001f from [::ffff:192.168.0.72:46766]
> ALPN=<none>
> 00000001:test_fe.clihdr[001c:ffffffff]: content-type: application/json
> 00000007:test_fe.accept(0004)=0025 from [::ffff:192.168.0.72:46776]
> ALPN=<none>
> 00000003:test_fe.clireq[0022:ffffffff]: GET /haproxy-load HTTP/1.1
> 00000008:test_fe.accept(0004)=001d from [::ffff:192.168.0.72:46756]
> ALPN=<none>
> 00000004:test_fe.clireq[0024:ffffffff]: GET /haproxy-load HTTP/1.1
> 00000003:test_fe.clihdr[0022:ffffffff]: host: 192.168.0.206:8080
> 00000004:test_fe.clihdr[0024:ffffffff]: host: 192.168.0.206:8080
> 
> Those do not look like errors but in any case I tried also with 'emerg' log
> level instead of 'err'
>  and this didn't change anything.

This is haproxy debug output, available when you start with haproxy -d.

> 
> Do I configure it in a wrong way ?
> I want HAProxy to log only when there is a problem. Because now it logs few
> GBs of those when I load it and this affects the performance.
> https://medium.com/@martin.grigorov/hi-willy-476dee6439d3

How do you start haproxy ?

-- 
Jérôme

Reply via email to