# How watcher query the elasticsearch based on time interval

**URL:** <https://discuss.elastic.co/t/how-watcher-query-the-elasticsearch-based-on-time-interval/40331>\
**Category:** Elasticsearch\
**Created:** [January 28, 2016, 7:22am UTC](https://discuss.elastic.co/t/how-watcher-query-the-elasticsearch-based-on-time-interval/40331 "2016-01-28T07:22:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajkamalkool6](https://avatars.discourse-cdn.com/v4/letter/r/e9c0ed/32.png) [@rajkamalkool6](https://discuss.elastic.co/u/rajkamalkool6)\
**Post date:** [January 28, 2016, 7:22am UTC](https://discuss.elastic.co/t/how-watcher-query-the-elasticsearch-based-on-time-interval/40331/1 "2016-01-28T07:22:04Z")

</div>

I have a doubt on Watcher functionality. I have configured the time interval to 30minutes,

> "trigger" : {  
> "schedule" : { "interval" : "30m" }  
> },

Will Watcher monitor the upcoming new event(payload) or it will monitor the indexed data every 30 min.

Can anyone please explain about this functionality in detail.

Thanks in advance

---

<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:** [July 5, 2017, 11:20pm UTC](https://discuss.elastic.co/t/how-watcher-query-the-elasticsearch-based-on-time-interval/40331/2 "2017-07-05T23:20:52Z")

</div>


