# Elasticsearch Alerting Rules Miss Expected Events When Matching Documents Are Indexed Close Together

**URL:** <https://discuss.elastic.co/t/elasticsearch-alerting-rules-miss-expected-events-when-matching-documents-are-indexed-close-together/392095>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 30, 2026, 9:15pm UTC](https://discuss.elastic.co/t/elasticsearch-alerting-rules-miss-expected-events-when-matching-documents-are-indexed-close-together/392095 "2026-11-30T21:15:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeroot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joeroot/32/132925_2.png) [@joeroot](https://discuss.elastic.co/u/joeroot)\
**Post date:** [November 30, 2026, 9:15pm UTC](https://discuss.elastic.co/t/elasticsearch-alerting-rules-miss-expected-events-when-matching-documents-are-indexed-close-together/392095/1 "2026-11-30T21:15:30Z")

</div>

Hi Members,

I am working with Elasticsearch and the Elastic Stack alerting functionality to monitor application events stored in an index and notify our team when a particular condition is met. The goal is to create an alert that detects specific documents as they are indexed and sends a notification when the matching event appears. The rule works correctly during basic testing: when I index a document that clearly satisfies the configured condition, the alert is eventually triggered and the expected notification is generated. However, I am experiencing an intermittent issue where some matching events are not detected by the alerting rule, even though I can find the corresponding documents in Elasticsearch and confirm that their fields contain the values the rule is supposed to match. This is making the alerting setup unreliable because I cannot confidently depend on it to notify us whenever an important event occurs.

The problem seems more noticeable when several matching documents are indexed within a short period of time. For example, if the application sends multiple events that satisfy the same alert condition close together, the rule sometimes generates a notification for the expected activity, but at other times it appears to evaluate only part of the matching data or does not generate a notification at all. When I manually search the index after the event has been processed, the documents are present and the query used by the alerting rule can find them. This makes it difficult to understand why the alert evaluation does not consistently recognize the same documents. I have checked that the indexed documents contain the expected field names and values, and I have not found an obvious difference between documents that are detected and those that are missed. The behavior also does not appear to happen with every evaluation, which makes reproducing it consistently challenging.

I have reviewed the alert rule configuration and checked that its query is targeting the correct index and filtering on the intended event fields. I have also examined the configured evaluation interval and the time range used to look for matching documents, because I suspect that the timing of indexing and rule execution could be relevant. One possibility I am considering is whether a document becomes searchable slightly after it has been indexed, causing the alerting rule to evaluate before the latest matching event is available to its search request. However, I have not confirmed whether this explains the missed alerts, especially because the documents can be found when I inspect the index shortly afterward. I want to understand whether there are specific considerations around Elasticsearch refresh behavior, alert evaluation timing, or time-based query conditions that could cause this kind of inconsistent detection.

This issue is affecting the purpose of the monitoring setup because the alert is intended to identify important events without requiring someone to continuously inspect the index manually. When a matching document is present but no notification is generated, the team may remain unaware of an event that should have received attention. I could reduce the evaluation interval or increase the lookback window, but I am concerned that doing so without understanding the actual cause could result in repeated notifications for the same documents or unnecessary alert executions. I would prefer to configure the rule so that every qualifying event is detected reliably while avoiding duplicate notifications. The challenge is finding the right balance between evaluation frequency, the query's time range, and the way Elasticsearch makes newly indexed documents available to searches.

I have started comparing the timestamps of indexed documents with the alert execution times to see whether the missed events are associated with a particular delay or evaluation boundary. I am also checking the alert execution history to determine whether the rule is completing successfully but returning no matches, or whether an execution is failing before it can evaluate the query. So far, I have not identified a consistent pattern that explains the behavior. I would appreciate advice on which parts of the Elastic Stack alerting process are most useful to inspect when documents exist in an index but are not consistently detected by a rule. In particular, I would like to know whether there are recommended practices for designing time-based alert queries so that events arriving close to an evaluation boundary are not missed, and whether the rule should use a different approach to track documents that have already triggered notifications.

Has anyone experienced Elasticsearch alerting rules occasionally missing matching documents when multiple events are indexed close together, even though those documents become searchable afterward and match the rule's query? I would like to understand whether this is usually related to refresh timing, the alert's evaluation interval, the configured time window, or another aspect of rule execution. What would be the best way to configure and troubleshoot this type of alert so that each qualifying event is detected consistently without generating duplicate notifications? Any practical guidance on inspecting alert execution details and building a reliable event-detection rule in the Elastic Stack would be greatly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [November 30, 2026, 9:33pm UTC](https://discuss.elastic.co/t/elasticsearch-alerting-rules-miss-expected-events-when-matching-documents-are-indexed-close-together/392095/2 "2026-11-30T21:33:45Z")

</div>

Please provide the exact and complete configuration of the rule and some sample documents. (Including the version and license level of the Elastic stack)

Otherwise we can not help.

Also it is not clear what your desired behavior is...

Example if 3 matching documents are received in a given time window do you want 1 alert or 3?

If 2 arrive in 1 time window and the 3rd in the next what is your desires outcome?

Elastic alerting is not really designed to be a real time change detection engine which seems to be sort of what you are trying to build..

But give us concrete details and perhaps we can help.

---

<div class="post-metadata">

**Author:** ![NorrisFByrd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norrisfbyrd/32/148800_2.png) [@NorrisFByrd](https://discuss.elastic.co/u/NorrisFByrd)\
**Post date:** [December 1, 2026, 6:26am UTC](https://discuss.elastic.co/t/elasticsearch-alerting-rules-miss-expected-events-when-matching-documents-are-indexed-close-together/392095/3 "2026-12-01T06:26:00Z")

</div>

This sounds like a timing window rather than a missed match. If the rule checks every minute but looks back only over that minute, a document that becomes searchable just after a run can fall outside the next run too, depending on how the window is set.

Two things I would check first. What is the check interval and the lookback period, and is there any throttle or grouping that could collapse several close matches into one alert? Also, does the rule use the document timestamp or the ingestion time? When those differ by even a few seconds, bursts are where it shows up first.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [December 1, 2026, 12:21pm UTC](https://discuss.elastic.co/t/elasticsearch-alerting-rules-miss-expected-events-when-matching-documents-are-indexed-close-together/392095/4 "2026-12-01T12:21:41Z")

</div>

As mentioned, you need to share what your rule looks like, is very hard to troubleshoot this without seeing what kind of rule you are using and how it is built, the schedule, the lookback window, if it has suppression or not etc.

Please share the configuration of your rule, share as screenshots or using the rule json definition.
