Drop noisy logs
Health-check probes (/healthz, /health, /ping) dwarf real traffic in
most log streams. They cost storage at your destination, dilute search
results, and tell you nothing useful. Dropping them before they leave the
collector is a one-step pipeline change.
What you’ll do
Section titled “What you’ll do”- Add a Filter step to a pipeline with an OTTL match expression.
- Verify with the dry-run panel that the unwanted records disappear.
- Save + attach the pipeline to a route on the collector receiving the noisy source.
1. Add a Filter step
Section titled “1. Add a Filter step”Open the pipeline you want to clean up (or create a new one — see Build your first pipeline for the chain-editor walkthrough). Click + Add Processor.
Use the pre-baked Drop Health Check Logs template for the common case
(it drops /healthz, /healthy, /ready, /live paths typical of
Kubernetes probes). For other patterns, pick Filter (custom) and
write an OTTL expression in the rule builder:
IsMatch(body, "GET /health")
Anything matching the expression is dropped before the next processor sees it.
2. Dry-run against a sample
Section titled “2. Dry-run against a sample”Open the dry-run panel and paste a sample with a mix of records you want to drop and records you want to keep:
{
"resourceLogs": [{
"scopeLogs": [{
"logRecords": [
{"body": {"stringValue": "GET /health HTTP/1.1 200"}},
{"body": {"stringValue": "POST /api/v1/orders HTTP/1.1 201"}}
]
}]
}]
}
Click Run. The Final Output panel shows only the /api/v1/orders
record — /health was filtered out.
3. Verify on a live collector
Section titled “3. Verify on a live collector”Save the pipeline and attach it via a route on the collector that owns the noisy source. Within a few seconds the change is live.
Watch the per-stream throughput counters on the collector detail page: the route’s input rate stays the same (records still arrive), but the output rate drops by however much noise you filtered. The delta is your savings.
Related
Section titled “Related”- Pipeline — the recipe-vs-route distinction
- Build your first pipeline — full walkthrough including dry-run + route attach
- Mask PII — the same Transform-vs-Filter choice applied to redaction