Skip logging for haproxy health checks
The health check requests from haproxy cause uwsgi to write a lot of useless log lines. This can make it more difficult to find a problem with a particular service. This patch adds a route to look for the `osa-haproxy-healthcheck` user agent string, which haproxy uses when performing health checks. Any requests with that user agent are not logged. Closes-Bug: 1742718 Change-Id: Ia163d1686274bd3b80a046a945fb7d7ceb5f721c
This commit is contained in:
parent
4dcd88a55d
commit
943b5c560b
@ -18,3 +18,6 @@ lazy-apps = true
|
||||
add-header = Connection: close
|
||||
buffer-size = 65535
|
||||
thunder-lock = true
|
||||
|
||||
# Avoid filling up the logs with health check requests from haproxy.
|
||||
route-user-agent = ^osa-haproxy-healthcheck$ donotlog:
|
||||
|
Loading…
x
Reference in New Issue
Block a user