Skip to content

Allow Suppression of Logs from Healthcheck Endpoints #66

Open
@lzettel

Description

@lzettel

Description

We have a Rails application running with the default health check implemented at /up, and we are constantly receiving logs like this:

{"time":"2025-02-11T06:48:36.879509079Z","level":"INFO","msg":"Request","path":"/up","status":200,"dur":7,"method":"GET","req_content_length":0,"req_content_type":"","resp_content_length":73,"resp_content_type":"text/html; charset=utf-8","remote_addr":"x.x.x.x:xxxx","user_agent":"kube-probe/1.28","cache":"miss","query":""}

These logs are generated by liveness probes and do not provide useful insights while adding unnecessary noise to our logs.

Rails already provides an option to silence these kinds of logs:

  # Prevent health checks from clogging up the logs.
  config.silence_healthcheck_path = '/up'

Feature Request

It would be nice to have the ability to suppress logs for specific endpoints, such as /up. The endpoint(s) could be set with an ENV.

Thanks in advance for your time and effort in considering this request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions