# Watcher - Alert on any new data

**URL:** <https://discuss.elastic.co/t/watcher-alert-on-any-new-data/155539>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 6, 2018, 11:43am UTC](https://discuss.elastic.co/t/watcher-alert-on-any-new-data/155539 "2018-11-06T11:43:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpover](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@kpover](https://discuss.elastic.co/u/kpover)\
**Post date:** [November 6, 2018, 11:43am UTC](https://discuss.elastic.co/t/watcher-alert-on-any-new-data/155539/1 "2018-11-06T11:43:05Z")

</div>

Hello,

I'm just getting started with Watcher. As a test I would like to create a very simple watcher that alerts whenever new data is added to an index. To provide some context, we have an index that is taking alerts from a number of other tools. I would like to create a watcher that then also alerts on these alerts coming in. I don't need any filtering or message searching as I would like the watcher to trigger on any alerts that are coming in. I've had a play with the match\_all options but can't get it to work. Any suggestions?

Thanks in advance,  
Kyle

---

<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:** [November 6, 2018, 12:57pm UTC](https://discuss.elastic.co/t/watcher-alert-on-any-new-data/155539/2 "2018-11-06T12:57:21Z")

</div>

Hey Kyle,

if the events, that you are indexing are coming with a timestamp when they have been created, you could have a search query in your watch, that searches for documents of the last 5 minutes or something and thus always get the most recent ones.

Would that solve your issue or did I miss something?

--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:** [December 4, 2018, 12:57pm UTC](https://discuss.elastic.co/t/watcher-alert-on-any-new-data/155539/3 "2018-12-04T12:57:25Z")

</div>

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