# Alerting by amount of "hits"

**URL:** <https://discuss.elastic.co/t/alerting-by-amount-of-hits/233715>\
**Category:** SIEM\
**Created:** [May 21, 2020, 9:51am UTC](https://discuss.elastic.co/t/alerting-by-amount-of-hits/233715 "2020-05-21T09:51:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Or\_Biran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/or_biran/32/63277_2.png) [@Or\_Biran](https://discuss.elastic.co/u/Or_Biran)\
**Post date:** [May 21, 2020, 9:51am UTC](https://discuss.elastic.co/t/alerting-by-amount-of-hits/233715/1 "2020-05-21T09:51:32Z")

</div>

Hi,

I want to create a detection rule that if was X unauthorized events then Alert\Create a signal... how can I do that? thanks!

---

<div class="post-metadata">

**Author:** ![Mike\_Paquette](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_paquette/32/119011_2.png) [@Mike\_Paquette](https://discuss.elastic.co/u/Mike_Paquette)\
**Post date:** [May 21, 2020, 12:11pm UTC](https://discuss.elastic.co/t/alerting-by-amount-of-hits/233715/2 "2020-05-21T12:11:52Z")

</div>

Hi @Or_Biran,

Thanks for posting this question. I think a lot of readers are wondering about this topic.

The type of threshold-based detection you describe is not currently possible using the SIEM app detection rules. We are currently working on adding a new SIEM rule type, based on a set of Elasticsearch aggregations, that will allow for threshold-based detections.

We can't say exactly when it will become available, but you can get a rough idea of its functionality by checking out the beta version of Kibana "Alerts and Actions" features in the 7.7 version of the Elastic Stack ([documentation here](https://www.elastic.co/guide/en/kibana/current/managing-alerts-and-actions.html)). We expect the future SIEM detection rules to offer similar functionality.

Thanks again, and please continue to provide us with additional feedback.

-Mike P.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 18, 2020, 12:11pm UTC](https://discuss.elastic.co/t/alerting-by-amount-of-hits/233715/3 "2020-06-18T12:11:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
