# Execute Update by query via Watcher

**URL:** <https://discuss.elastic.co/t/execute-update-by-query-via-watcher/171161>\
**Category:** Elasticsearch\
**Created:** [March 6, 2019, 5:13pm UTC](https://discuss.elastic.co/t/execute-update-by-query-via-watcher/171161 "2019-03-06T17:13:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenyphur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenyphur/32/40735_2.png) [@jenyphur](https://discuss.elastic.co/u/jenyphur)\
**Post date:** [March 6, 2019, 5:13pm UTC](https://discuss.elastic.co/t/execute-update-by-query-via-watcher/171161/1 "2019-03-06T17:13:08Z")

</div>

Hi there, I have a need to run an Update\_by\_query every few hours. Is this possible via watcher? I am having a hard time figuring out the 'action' part of it.

I have the update query working manually...just need to know how to make it run via watcher.

Thanks.

Jen

---

<div class="post-metadata">

**Author:** ![jenyphur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jenyphur/32/40735_2.png) [@jenyphur](https://discuss.elastic.co/u/jenyphur)\
**Post date:** [March 6, 2019, 5:17pm UTC](https://discuss.elastic.co/t/execute-update-by-query-via-watcher/171161/2 "2019-03-06T17:17:20Z")

</div>

I just stumbled on a possible solution using webhook as the action. ☹

Is there any other way?

---

<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:** [April 3, 2019, 5:24pm UTC](https://discuss.elastic.co/t/execute-update-by-query-via-watcher/171161/3 "2019-04-03T17:24:45Z")

</div>

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