# Trigger watcher alert (email) for every log occurrence

**URL:** <https://discuss.elastic.co/t/trigger-watcher-alert-email-for-every-log-occurrence/252013>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [October 14, 2020, 9:02am UTC](https://discuss.elastic.co/t/trigger-watcher-alert-email-for-every-log-occurrence/252013 "2020-10-14T09:02:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natesh\_Todur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natesh_todur/32/77152_2.png) [@Natesh\_Todur](https://discuss.elastic.co/u/Natesh_Todur)\
**Post date:** [October 14, 2020, 9:02am UTC](https://discuss.elastic.co/t/trigger-watcher-alert-email-for-every-log-occurrence/252013/1 "2020-10-14T09:02:23Z")

</div>

Hi,  
Can I receive watcher alert for every log occurrence ?  
I have a current configuration wherein the watcher is scheduled every 2 minutes and all occurrences within that interval are clubbed to send a single email alert.  
eg : **Actvity Count:** 4

Instead I would want to receive 4 separate emails. Is that possible?

Thanks

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 16, 2020, 1:46pm UTC](https://discuss.elastic.co/t/trigger-watcher-alert-email-for-every-log-occurrence/252013/2 "2020-10-16T13:46:11Z")

</div>

You can use the `foreach` directive in an action, see [https://www.elastic.co/guide/en/elasticsearch/reference/7.9/action-foreach.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/action-foreach.html)

---

<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:** [November 13, 2020, 1:46pm UTC](https://discuss.elastic.co/t/trigger-watcher-alert-email-for-every-log-occurrence/252013/3 "2020-11-13T13:46:43Z")

</div>

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