# How to monitor the size of elasticsearch index

**URL:** https://discuss.elastic.co/t/how-to-monitor-the-size-of-elasticsearch-index/375986
**Category:** Elasticsearch
**Created:** [March 17, 2025, 4:19am UTC](https://discuss.elastic.co/t/how-to-monitor-the-size-of-elasticsearch-index/375986 "2025-03-17T04:19:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jinfeng\_zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jinfeng_zhang/32/139226_2.png) [@jinfeng\_zhang](https://discuss.elastic.co/u/jinfeng_zhang)
#### Post date: [March 17, 2025, 4:19am UTC](https://discuss.elastic.co/t/how-to-monitor-the-size-of-elasticsearch-index/375986/1 "2025-03-17T04:19:38Z")

</div>

Do you have a solution for elasticsearch index size monitoring?

For example, the index pit doesn't scroll according to the lifetime I set for various reasons, so it can get big. At this point, I would like to receive an alert or prompt.

Normally, 30GB might roll, but I want to be alerted when 35GB hasn't rolled yet.

---

<div class="post-metadata">

### Author: ![iulia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iulia/32/124658_2.png) [@iulia](https://discuss.elastic.co/u/iulia)
#### Post date: [March 18, 2025, 11:26am UTC](https://discuss.elastic.co/t/how-to-monitor-the-size-of-elasticsearch-index/375986/2 "2025-03-18T11:26:47Z")

</div>

There are a few ways to check on your index size.  
You can set up monitoring

You can use the [`cat` API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html) to ask about your index size:

` GET /_cat/indices/my-index-*?v=true&s=index`

You can schedule to run and collect this information periodically and take action if the size goes above what your policy states.

Elastic has a [Watcher](https://www.elastic.co/guide/en/elasticsearch/reference/8.17/watcher-getting-started.html) you can use to set up these kind of tasks.  
There's an [official example repo](https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches) with a few useful ones for inspiration on how to set up the conditions / alerts / timing parameters to get exactly what you want.

You can see an example similar to your request using these tools here:

> **[Monitoring Index Size Trends in Elasticsearch: Monthly and Daily Statistics -...](https://socprime.com/blog/knowledge-bits/monitoring-index-size-trends-in-elasticsearch/)**
>
> Learn how to efficiently monitor and manage index sizes in Elasticsearch, ensuring a stable and well-optimized cluster.
