🚀 Feature: Exclude /health endpoint from logs #587

Closed
opened 2026-02-04 20:35:34 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @nebula-it on GitHub (Jan 4, 2026).

Feature description

An env var to disable logging for /health endpoint

Pitch

Running Pocket-id in kubernets and logs get filled up by logs like these making it hard to review the actual logs:

Jan  3 16:16:45 INF Request app=pocket-id version=2.0.1 status=200 method=GET path=/health query="" route="" ip=10.15.232.236 latency=194.791µs referer="" user_agent=kube-probe/1.34 body_size=2024
Originally created by @nebula-it on GitHub (Jan 4, 2026). ### Feature description An env var to disable logging for `/health` endpoint ### Pitch Running Pocket-id in kubernets and logs get filled up by logs like these making it hard to review the actual logs: ``` Jan 3 16:16:45 INF Request app=pocket-id version=2.0.1 status=200 method=GET path=/health query="" route="" ip=10.15.232.236 latency=194.791µs referer="" user_agent=kube-probe/1.34 body_size=2024 ```
Author
Owner

@stonith404 commented on GitHub (Jan 4, 2026):

You should use /healthz for the healthcheck instead, this endpoint will get excluded from the logs correctly.

@stonith404 commented on GitHub (Jan 4, 2026): You should use `/healthz` for the healthcheck instead, this endpoint will get excluded from the logs correctly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#587