# Can Watcher execute a shell script on a remote machine?

**URL:** <https://discuss.elastic.co/t/can-watcher-execute-a-shell-script-on-a-remote-machine/67565>\
**Category:** Elasticsearch\
**Created:** [November 30, 2016, 12:41am UTC](https://discuss.elastic.co/t/can-watcher-execute-a-shell-script-on-a-remote-machine/67565 "2016-11-30T00:41:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkuser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elkuser/32/13483_2.png) [@elkuser](https://discuss.elastic.co/u/elkuser)\
**Post date:** [November 30, 2016, 12:41am UTC](https://discuss.elastic.co/t/can-watcher-execute-a-shell-script-on-a-remote-machine/67565/1 "2016-11-30T00:41:48Z")

</div>

instead of an email alert or webhook, is it possible to get watcher action to execute a unix shell script on a remote machine, when a watcher alert condition is met?

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [November 30, 2016, 12:43pm UTC](https://discuss.elastic.co/t/can-watcher-execute-a-shell-script-on-a-remote-machine/67565/2 "2016-11-30T12:43:16Z")

</div>

No. The only way you could execute a script remotely is by building a http interface around your script.

---

<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 28, 2016, 12:43pm UTC](https://discuss.elastic.co/t/can-watcher-execute-a-shell-script-on-a-remote-machine/67565/3 "2016-12-28T12:43:24Z")

</div>

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