# Generate multiple alerts from elastic query

**URL:** <https://discuss.elastic.co/t/generate-multiple-alerts-from-elastic-query/351113>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [January 16, 2024, 1:04am UTC](https://discuss.elastic.co/t/generate-multiple-alerts-from-elastic-query/351113 "2024-01-16T01:04:55Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [January 18, 2024, 3:03pm UTC](https://discuss.elastic.co/t/generate-multiple-alerts-from-elastic-query/351113/11 "2024-01-18T15:03:19Z")

</div>

I Do not exactly recall but perhaps take a look at this thread It may help.

> [@Metric Threshold Alert reporting incorrect document count](https://discuss.elastic.co/t/metric-threshold-alert-reporting-incorrect-document-count/346553/33):
>
> Hey @stephenb, yes it seems you have a pretty good understanding of the situation. The alerts created through the metric explorer were all working as intended. However, we create our rules through the kibana API due to an integration with our react app. Looking at the rule from the UI, it looked alright since it had been showing the filterQueryText. Though underneath, it was missing a filterQuery value so in reality it wasn't filtering at all. I would think that the filterQuery would be derived…

---

_[View the full topic](https://discuss.elastic.co/t/generate-multiple-alerts-from-elastic-query/351113)._
