# Elastic action script

**URL:** <https://discuss.elastic.co/t/elastic-action-script/1158>\
**Category:** Elasticsearch\
**Created:** [May 22, 2015, 8:57am UTC](https://discuss.elastic.co/t/elastic-action-script/1158 "2015-05-22T08:57:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Penny\_Lee](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@Penny\_Lee](https://discuss.elastic.co/u/Penny_Lee)\
**Post date:** [May 22, 2015, 8:57am UTC](https://discuss.elastic.co/t/elastic-action-script/1158/1 "2015-05-22T08:57:58Z")

</div>

I am thinking to solve the correlation problem.  
All of the log will store at ElasticSearch, and I would like to find the logs that appears \> 5 times with a period then it will take a action to send the command to devices.  
Is there any action script / plugin to send some commands to another shell / server / router/ switch?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 22, 2015, 10:22am UTC](https://discuss.elastic.co/t/elastic-action-script/1158/2 "2015-05-22T10:22:55Z")

</div>

The recently announced [Elastic Watcher](https://www.elastic.co/products/watcher) product does exactly this. If you already run a monitoring system like Nagios it's also easy to write a check that queries Elasticsearch at certain intervals.

---

<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, 12:12am UTC](https://discuss.elastic.co/t/elastic-action-script/1158/3 "2017-07-06T00:12:27Z")

</div>


