# Watcher and potential for missed results

**URL:** <https://discuss.elastic.co/t/watcher-and-potential-for-missed-results/63396>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [October 19, 2016, 1:25pm UTC](https://discuss.elastic.co/t/watcher-and-potential-for-missed-results/63396 "2016-10-19T13:25:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djmcgreal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/djmcgreal/32/52956_2.png) [@djmcgreal](https://discuss.elastic.co/u/djmcgreal)\
**Post date:** [October 19, 2016, 1:25pm UTC](https://discuss.elastic.co/t/watcher-and-potential-for-missed-results/63396/1 "2016-10-19T13:25:45Z")

</div>

Hi all searchers,

I have a bunch of data I'm indexing, and I want to be able to write a Watcher watch that gives me the new data at regular intervals. I will likely construct my query to check that my date field is \> execution time - interval. Is there going to be a problem for data that's contributed between the index refresh and watch execution? Is there a way to ask a search to wait for a refresh? Is this already taken care of by Watcher cunningly synchronising with index refreshes?

Thanks!  
Dan.

---

<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 20, 2016, 7:39am UTC](https://discuss.elastic.co/t/watcher-and-potential-for-missed-results/63396/2 "2016-10-20T07:39:58Z")

</div>

Hey,

watcher does not take care of any refresh before executing queries, you need to do that yourself. You could do a refresh before executing a search, using a chained input with a http input. However this obviously implies you never index data with older timestamps as you would not hit it... if you are sure about that, you could go with that approach.

--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:** [July 6, 2017, 1:42pm UTC](https://discuss.elastic.co/t/watcher-and-potential-for-missed-results/63396/3 "2017-07-06T13:42:28Z")

</div>

Closed on July 6, 2017, 1:42pm UTC


