# How to write a common Watcher for all indices?

**URL:** <https://discuss.elastic.co/t/how-to-write-a-common-watcher-for-all-indices/99244>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [September 4, 2017, 5:55am UTC](https://discuss.elastic.co/t/how-to-write-a-common-watcher-for-all-indices/99244 "2017-09-04T05:55:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjm](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mjm](https://discuss.elastic.co/u/mjm)\
**Post date:** [September 4, 2017, 5:55am UTC](https://discuss.elastic.co/t/how-to-write-a-common-watcher-for-all-indices/99244/1 "2017-09-04T05:55:54Z")

</div>

Hello !

I want to create a common Watcher for all indices. In this case i am not sure how to mention all the indices.

i tried indices: [\*], this is not working for me.

Thanks

---

<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:** [September 8, 2017, 8:53am UTC](https://discuss.elastic.co/t/how-to-write-a-common-watcher-for-all-indices/99244/2 "2017-09-08T08:53:56Z")

</div>

Hey,

try leaving it out completely. But also be aware, that you would use across the watcher indices then for example (and very likely monitoring and security as well), which I dont think makes a lot of sense.

--Alex

---

<div class="post-metadata">

**Author:** ![mjm](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@mjm](https://discuss.elastic.co/u/mjm)\
**Post date:** [September 18, 2017, 3:17pm UTC](https://discuss.elastic.co/t/how-to-write-a-common-watcher-for-all-indices/99244/3 "2017-09-18T15:17:14Z")

</div>

thank you.

---

<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:** [October 16, 2017, 3:17pm UTC](https://discuss.elastic.co/t/how-to-write-a-common-watcher-for-all-indices/99244/4 "2017-10-16T15:17:51Z")

</div>

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