# Stop Watcher after first alert

**URL:** <https://discuss.elastic.co/t/stop-watcher-after-first-alert/142204>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [July 30, 2018, 3:09pm UTC](https://discuss.elastic.co/t/stop-watcher-after-first-alert/142204 "2018-07-30T15:09:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![TheNmaptomyHeartBeat](https://avatars.discourse-cdn.com/v4/letter/t/47e85d/32.png) [@TheNmaptomyHeartBeat](https://discuss.elastic.co/u/TheNmaptomyHeartBeat)\
**Post date:** [August 3, 2018, 3:27pm UTC](https://discuss.elastic.co/t/stop-watcher-after-first-alert/142204/4 "2018-08-03T15:27:33Z")

</div>

I ended up useing the example from [here](https://discuss.elastic.co/t/how-do-i-setup-watcher-to-only-alert-on-new-messages/27330/2?u=thenmaptomyheartbeat). I filtered anything more than 25s and while setting the interval of the watcher to 20s.

It does only send one notification for that record before it leaves that 5 second window.

I have noticed that this is isn't perfect. It does miss a couple of records but for the most part it works to a satisfactory level.

---

_[View the full topic](https://discuss.elastic.co/t/stop-watcher-after-first-alert/142204)._
