# Elastic Alert by Watcher send only once

**URL:** <https://discuss.elastic.co/t/elastic-alert-by-watcher-send-only-once/84649>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [May 5, 2017, 4:42am UTC](https://discuss.elastic.co/t/elastic-alert-by-watcher-send-only-once/84649 "2017-05-05T04:42:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian\_Fazri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julian_fazri/32/15921_2.png) [@Julian\_Fazri](https://discuss.elastic.co/u/Julian_Fazri)\
**Post date:** [May 5, 2017, 4:42am UTC](https://discuss.elastic.co/t/elastic-alert-by-watcher-send-only-once/84649/1 "2017-05-05T04:42:40Z")

</div>

PUT \_xpack/watcher/watch/meetup  
{  
"trigger": {  
"schedule": {  
"interval": "1m"  
}  
},  
"input" : {  
"search" : {  
"request" : {  
"indices" : ["logs"],  
"types" : ["event"],  
"body" : {  
"query" : { "match\_all" : {}}  
}  
}  
}  
}  
"actions": {  
"email\_me": {  
"email": {  
"from": "\<from:email address\>",  
"to": "\<to:email address\>",  
"subject": "Open Source Events",  
"body": {  
"html": "Found events matching Open Source"  
}  
}  
}  
}

I have created elastic alert for example I am using those scripts. Those script will send email every 1 minute if there's an event match.  
What I need is, watcher only send email alert once when the event triggered, watcher will check every 1 minute if there's a new event and match with condition it will send email, but if there's no new event it will not send an email.  
What should I do, on those scripts?

---

<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:** [May 15, 2017, 9:06pm UTC](https://discuss.elastic.co/t/elastic-alert-by-watcher-send-only-once/84649/2 "2017-05-15T21:06:06Z")

</div>

Hey,

have you checked out [throttling and manual acknowledgement](https://www.elastic.co/guide/en/watcher/2.4/actions.html#actions-ack-throttle)?

--Alex

---

<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 12, 2017, 9:09pm UTC](https://discuss.elastic.co/t/elastic-alert-by-watcher-send-only-once/84649/3 "2017-06-12T21:09:43Z")

</div>

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