CRE-2025-0032
Loki generates excessive logs when memcached service port name is incorrectLowImpact: 2/10Mitigation: 4/10
CRE-2025-0032View on GitHub
Description
Loki instances using memcached for caching may emit excessive warning or error logs when the configured`memcached_client` service port name does not match the actual Kubernetes service port. This does not cause a crash or failure, but it results in noisy logs and ineffective caching behavior.
Cause
Loki's memcached client resolves the service by port name. If the port name is incorrect or not present in the Kubernetes service definition, the client fails to connect silently or repeatedly logs errors while retrying.
Mitigation
- Ensure that the `memcached_client` configuration references the correct Kubernetes service port name.
- Match the port name exactly as defined in your memcached service.
- For example:
ports: - name: memcache port: 11211
- Update your Helm values or Loki configuration accordingly.