I am enabling stats with something similar to this configuration:
global
log /var/run/log local0 info
defaults
log global
listen stats
bind *:9090
stats enable
stats auth secret:pass
stats refresh 5s
stats show-legends
stats show-node
stats uri /stats
They work but now I would like to know if there is a way to preventing the stats to emit logs, currently, In my logs, I have multiple lines like:
Connect from x.x.x.x:33970 to y.y.y.y:9090 (stats/HTTP)
Any idea of how to prevent to log the stats requests?
I already tried in the listen stats
definitions without success:
http-request set-log-level silent
I use option dontlog-normal in the frontend config - http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#4-option%20dontlog-normal and got no more log entries for /stats