# One alert for all unique event.action from all events in last 30mins

**URL:** <https://discuss.elastic.co/t/one-alert-for-all-unique-event-action-from-all-events-in-last-30mins/280313>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting, detection-rules\
**Created:** [August 3, 2021, 12:59pm UTC](https://discuss.elastic.co/t/one-alert-for-all-unique-event-action-from-all-events-in-last-30mins/280313 "2021-08-03T12:59:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jancodenew](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jancodenew](https://discuss.elastic.co/u/jancodenew)\
**Post date:** [August 3, 2021, 12:59pm UTC](https://discuss.elastic.co/t/one-alert-for-all-unique-event-action-from-all-events-in-last-30mins/280313/1 "2021-08-03T12:59:19Z")

</div>

Hi,  
Version: ELK 7.13  
Need to generate a single alert for all events with unique event.action feild values in last 30minute.

Can someone please let me know which rule type I can use here? Also please share if you have any sample.

I have tried following without success.

1. Threshold rule Detection - But here I have to give a threshold number and unique value number, in my actual requirement there is no such number limit.

2. Custom Rule: There is no option to aggregate/group by one field and send alert based on this.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![rw-access](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rw-access/32/47998_2.png) [@rw-access](https://discuss.elastic.co/u/rw-access)\
**Post date:** [August 23, 2021, 3:49pm UTC](https://discuss.elastic.co/t/one-alert-for-all-unique-event-action-from-all-events-in-last-30mins/280313/2 "2021-08-23T15:49:43Z")

</div>

What if you do this?

 ![Screen Shot 2021-08-23 at 9.49.23 AM](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1a5a0f9f9fa32f39fe53e8aea7e93305c40d6369.png)

---

<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:** [September 20, 2021, 3:50pm UTC](https://discuss.elastic.co/t/one-alert-for-all-unique-event-action-from-all-events-in-last-30mins/280313/3 "2021-09-20T15:50:06Z")

</div>

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