# Watcher for index size

**URL:** https://discuss.elastic.co/t/watcher-for-index-size/172612
**Category:** Elasticsearch
**Created:** [March 16, 2019, 1:15am UTC](https://discuss.elastic.co/t/watcher-for-index-size/172612 "2019-03-16T01:15:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![taandrews](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taandrews/32/42524_2.png) [@taandrews](https://discuss.elastic.co/u/taandrews)
#### Post date: [March 16, 2019, 1:15am UTC](https://discuss.elastic.co/t/watcher-for-index-size/172612/1 "2019-03-16T01:15:12Z")

</div>

I have several indices that have a prefix, let's say ABCD-123-\* . Is there a way to monitor/watch each individual index that starts with the aforementioned prefix and alert when the index reach a particular size. For instance have a watcher that will trigger an email when an index that starts with ABCD-123-\* hits 40GB. I can't find any info for how to accomplish this.

---

<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: [March 20, 2019, 8:48am UTC](https://discuss.elastic.co/t/watcher-for-index-size/172612/2 "2019-03-20T08:48:39Z")

</div>

hey,

you could use the (monitoring feature)[[https://www.elastic.co/guide/en/elasticsearch/reference/6.6/configuring-monitoring.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/configuring-monitoring.html)] and query those indices in a watch.

Outside of watcher, the [index lifecycle management feature](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/index-lifecycle-management-api.html) might be interesting for you as well, depending on what you plan to do with that above information and if automation can help maybe.

--Alex

---

<div class="post-metadata">

### Author: ![taandrews](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/taandrews/32/42524_2.png) [@taandrews](https://discuss.elastic.co/u/taandrews)
#### Post date: [March 21, 2019, 3:23pm UTC](https://discuss.elastic.co/t/watcher-for-index-size/172612/3 "2019-03-21T15:23:04Z")

</div>

Thank you for the info. I am a bit new to ES. I need to see an example of how this is done. I can see the filed that I need but can't drill down to it.

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: [April 18, 2019, 3:23pm UTC](https://discuss.elastic.co/t/watcher-for-index-size/172612/4 "2019-04-18T15:23:08Z")

</div>

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