Is there a simple way to turn off the logging of h...
# ory-selfhosting
c
Is there a simple way to turn off the logging of healthcheck pings in ory kratos and hydra? It really pollutes the logs to see healthcheck pings every X seconds
r
Any log level lower than trace should be silent for healthcheck endpoints 👍
c
Am I just pointing at the wrong healthcheck endpoint then: time=2023-07-25T132418Z level=info msg=completed handling request http_request=map[headersmap[accept*/* connection:close user-agent:kube-probe/1.23] host:127.0.0.1 method:GET path:/admin/health/ready query:<nil> remote10.42.1.141418 scheme:http] http_response=map[headersmap[cache controlprivate, no-cache, no-store, must-revalidate content-type:application/json; charset=utf-8] size:16 status:200 text_status:OK took:1.304941ms]
@refined-kangaroo-48640
r
Have you set this config field?
serve.admin.request_log.disable_for_health
c
That seems to be the ticket! Will it work for hydra as well?
r
Yes
❤️ 1
c
Doesn't seem to work for hydra public apis for some reason, per: https://github.com/ory/hydra/issues/3521