You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid cluttering the logs, consider removing access logs for the health check endpoint when they are coming from AWS
Implementation note
one possible way to filter is to check if request path is healthcheck and check if user agent starts with ELB-HealthChecker/
The text was updated successfully, but these errors were encountered:
lorenyu
changed the title
Don't log health checks when they are coming from AWS
Don't log health check endpoint accesses when the request is coming from AWS
Feb 1, 2023
defis_load_balancer_health_check(request):
"""Test if the request comes from a load balancer."""returnrequest.path=="/v1/status"andrequest.headers.get("User-Agent", "").startswith(
"ELB-HealthChecker/"
)
To avoid cluttering the logs, consider removing access logs for the health check endpoint when they are coming from AWS
Implementation note
one possible way to filter is to check if request path is healthcheck and check if user agent starts with
ELB-HealthChecker/
The text was updated successfully, but these errors were encountered: