# X pack watcher create action for each error

**URL:** <https://discuss.elastic.co/t/x-pack-watcher-create-action-for-each-error/131702>\
**Category:** Elasticsearch\
**Created:** [May 14, 2018, 9:28am UTC](https://discuss.elastic.co/t/x-pack-watcher-create-action-for-each-error/131702 "2018-05-14T09:28:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suresh\_RS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suresh_rs/32/30600_2.png) [@Suresh\_RS](https://discuss.elastic.co/u/Suresh_RS)\
**Post date:** [May 14, 2018, 9:28am UTC](https://discuss.elastic.co/t/x-pack-watcher-create-action-for-each-error/131702/1 "2018-05-14T09:28:03Z")

</div>

In elasticsearch document,i have seen x-pack examples which create action for events occured within specific time range,I want to create an watcher action for each event.

---

<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:** [May 18, 2018, 9:48am UTC](https://discuss.elastic.co/t/x-pack-watcher-create-action-for-each-error/131702/2 "2018-05-18T09:48:04Z")

</div>

can you be more specific about your use-case? If you need to execute an action for every event, I would do this as part of my ingest operation and not as part of a scheduled run, though. But maybe taking some time to explain your use-case will clear things up.

---

<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 15, 2018, 9:48am UTC](https://discuss.elastic.co/t/x-pack-watcher-create-action-for-each-error/131702/3 "2018-06-15T09:48:05Z")

</div>

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