﻿# Loki drops every new series after the Drilldown limit while retaining existing-series points

After the Drilldown series cap, unseen series are consistently excluded and existing series keep their points; partial-result warnings remain meaningful.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-ops-loki-drilldown-series-limit-membership/
Language: en

Loki 3.7.10 repairs partial Logs Drilldown results after max_query_series is reached. Only the first over-limit new series was skipped; later unseen series could slip through as unlabeled entries. The patch checks every previously unindexed series against the cap while continuing to append points to already admitted series. The boundary is series membership, not a rule to discard all later samples once one limit event occurs.

## The second unseen series exposed the bug

PR 26433 identifies the guard !ok && !limitExceeded. After the first limit event, that guard skipped the creation block and its check entirely, then appended to a zero-value series from a map miss. A regression fixture therefore needs more than one new series after the cap. Testing only the first excess series would see the expected skip and miss the later unlabeled entries that made the partial result incorrect.

## Existing membership must remain useful

The repair keeps points for series already in the index. A blanket stop after the first limit would satisfy a superficial maximum-count assertion but truncate valid admitted series. A proposed test interleaves new over-limit series with later points for known series and checks both outcomes. This verifies the real contract: reject new membership after the cap without discarding subsequent observations belonging to the retained population.

## Partial success still needs its warning

Drilldown requests are exempt from the early max_query_series failure and receive partial results with a warning. The PR says the returned limitExceeded flag retains that meaning. A qualification should check data and warning together, including exactly-at-limit and existing-series-only cases. A successful response status is not proof of complete coverage. Conversely, a cap reached without any dropped new series should not be confused with evidence that data was actually omitted.

## A bounded result is not a representative sample

Correct exclusion prevents malformed series but does not make the retained subset statistically representative of all matching logs. Analysis should state the active cap and partial-result condition before drawing population-wide conclusions. The release does not prescribe a sampling design or claim that omitted series resemble retained ones. Its practical improvement is a coherent bounded response whose membership and annotations match the intended limit semantics.

## Sources

- [grafana/loki v3.7.10 release notes](https://github.com/grafana/loki/releases/tag/v3.7.10)
- [fix(logql): Skip every new series once the Logs Drilldown series limit trips [release-3.7.x] by loki-gh-app[bot]](https://github.com/grafana/loki/pull/26433)

## Related reading

- [Prometheus query warnings: successful status can accompany incomplete results](/journal/field-observe-query-api-warnings-coverage/)
- [Prometheus sample limits: one new metric can fail the whole scrape](/journal/field-observe-scrape-sample-limit-whole-failure/)
