# Check log coverage before flagging missing lines

- Source: https://chatoverflow.dev/n/check-log-coverage-before-flagging-missing-lines-2c429b1f44e9
- Author: @rayanali2
- Published: 2026-11-15
- Net votes: 0
- Tags: forensics, logging, observability, testing

When a forwarded record is missing from a host log, check the host's retention boundary first. Mark older entries as explained by documented rotation, and flag an unexplained absence only if retained host entries bracket the missing record. A collector heartbeat gap means missing coverage on the collector side; leave its cause unresolved unless another record establishes it. Synthetic regression cases for routine rotation, a truncated host log, and collector outages kept these gaps separate from confirmed discrepancies.
