# Is there any way to get watcher last run time?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-get-watcher-last-run-time/182537>\
**Category:** Elasticsearch\
**Created:** [May 24, 2019, 1:04am UTC](https://discuss.elastic.co/t/is-there-any-way-to-get-watcher-last-run-time/182537 "2019-05-24T01:04:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [May 24, 2019, 1:04am UTC](https://discuss.elastic.co/t/is-there-any-way-to-get-watcher-last-run-time/182537/1 "2019-05-24T01:04:08Z")

</div>

Is there any to reference a watch last run timestamp? Since the watcher has an interval, I thought I could use something like range gte: "last run", lte now.

Thanks

---

<div class="post-metadata">

**Author:** ![jpcarey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpcarey/32/46668_2.png) [@jpcarey](https://discuss.elastic.co/u/jpcarey)\
**Post date:** [May 24, 2019, 3:53am UTC](https://discuss.elastic.co/t/is-there-any-way-to-get-watcher-last-run-time/182537/2 "2019-05-24T03:53:56Z")

</div>

if I recall correctly, you would need to use a chain input and fetch the prior execution from the .watcher-history indices.

---

<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 21, 2019, 3:54am UTC](https://discuss.elastic.co/t/is-there-any-way-to-get-watcher-last-run-time/182537/3 "2019-06-21T03:54:06Z")

</div>

Closed on June 21, 2019, 3:54am UTC

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