-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Reduce log level for /sys/health #31856
Copy link
Copy link
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Vault logs requests to the healthcheck method (/v1/sys/health) with log level error, which is a bit too high:
{
"@level": "error",
"@message": "completed_request",
"@module": "core",
"@timestamp": "2026-03-26T11:21:16.759264Z",
"client_address": "[xxxx:xxxx:xxx:xxxx::xx]:57900",
"client_id": "",
"duration": "0ms",
"request_method": "GET",
"request_path": "/v1/sys/health",
"start_time": "2026-03-26T11:21:16Z",
"status_code": 200
}Describe the solution you'd like
Reduce the log level to debug or info. Also, I'd highly appreciate if Vault would allow silencing requests to this endpoint. The load balancer (actually load balancers, for redundancy reasons) access this endpoint every second, so it pollutes the logs and makes it difficult to find events of concern. A more general solution could be to allow an arbitrary set of method to be exempted from logging.
Describe alternatives you've considered
There aren't any.
Explain any additional use-cases
Easier troubleshooting.
Additional context
N/A
Reactions are currently unavailable