# Best way to create a watcher that checks index store size

**URL:** https://discuss.elastic.co/t/best-way-to-create-a-watcher-that-checks-index-store-size/199456
**Category:** Kibana
**Created:** [September 13, 2019, 3:20pm UTC](https://discuss.elastic.co/t/best-way-to-create-a-watcher-that-checks-index-store-size/199456 "2019-09-13T15:20:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_McGovern](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_mcgovern/32/90131_2.png) [@Matt\_McGovern](https://discuss.elastic.co/u/Matt_McGovern)
#### Post date: [September 13, 2019, 3:20pm UTC](https://discuss.elastic.co/t/best-way-to-create-a-watcher-that-checks-index-store-size/199456/1 "2019-09-13T15:20:06Z")

</div>

I'm trying to create a watcher that checks on the store size of an index pattern. I can easily see the information from Devtools by GET /index/stats/store, but how do I do this in a watcher?

I'm trying to do an http type request as referenced below, but I'm running into problems doing this. Is this the only way to do it?

[https://www.elastic.co/guide/en/elastic-stack-overview/7.2/input-http.html](https://www.elastic.co/guide/en/elastic-stack-overview/7.2/input-http.html)

---

<div class="post-metadata">

### Author: ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)
#### Post date: [September 13, 2019, 4:49pm UTC](https://discuss.elastic.co/t/best-way-to-create-a-watcher-that-checks-index-store-size/199456/2 "2019-09-13T16:49:41Z")

</div>

If you have monitoring enabled you can query the monitoring data for the index store size.  
[https://www.elastic.co/guide/en/elasticsearch/reference/master/configuring-monitoring.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/configuring-monitoring.html)  
The data pertaining to ES is usually stored in .monitoring-es indices afair.

---

<div class="post-metadata">

### Author: ![Matt\_McGovern](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_mcgovern/32/90131_2.png) [@Matt\_McGovern](https://discuss.elastic.co/u/Matt_McGovern)
#### Post date: [September 13, 2019, 6:34pm UTC](https://discuss.elastic.co/t/best-way-to-create-a-watcher-that-checks-index-store-size/199456/3 "2019-09-13T18:34:19Z")

</div>

I'm looking all over our .monitor\* indices but cannot seem to find this information in Discover. I'm searching for the \_index field equaling the index I'm concerned about but it's not showing up, only the .monitor ones are.

I can confirm that our xpack.monitoring.collection.enabled is true.

---

<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 11, 2019, 6:34pm UTC](https://discuss.elastic.co/t/best-way-to-create-a-watcher-that-checks-index-store-size/199456/4 "2019-10-11T18:34:22Z")

</div>

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