'Drop logs from promtail
I have prometheus + loki + grafana + promtail setup.
I need to drop the logs which have the words healthcheck or health-check.
My values.yaml file: https://github.com/grafana/helm-charts/blob/main/charts/promtail/values.yaml
Please help me how can I do it.
Solution 1:[1]
You can do this at the filtering stage in the pipeline
pipelineStages:
# - cri: {}
- drop:
expression: "(.*/health-check.*)|(.*/health.*)"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Hariom Saini |
