I log all my incoming requests and their corresponding outgoing responses. I use Rancher for provisioning and container management and the infrastructure service healthcheck
is configured to do health-check requests to each of my running applications every 2 sec, which means that there’s huge amount of redundant logs. Nevertheless, I don’t want to completely filter out /health-check
endpoind requests, because the endpoint is publicly open. I want to filter out only the ones coming from Rancher’s healthcheck service.
The problem is that the request headers only contain an IP, and that’s unreliable. I was thinking of filtering out by user-agent
, but the headers don’t have that. Any ideas how to recognize health-check requests from the Rancher internal service?