# Monthly Index Usage

**URL:** <https://discuss.elastic.co/t/monthly-index-usage/336407>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [June 19, 2023, 11:22pm UTC](https://discuss.elastic.co/t/monthly-index-usage/336407 "2023-06-19T23:22:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IsaacD](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@IsaacD](https://discuss.elastic.co/u/IsaacD)\
**Post date:** [June 19, 2023, 11:22pm UTC](https://discuss.elastic.co/t/monthly-index-usage/336407/1 "2023-06-19T23:22:25Z")

</div>

We have multiple teams using our elasticsearch stack and need to find out how much usage each team uses.  
Is there a way to collect the monthly resource usage (CPU, Memory, storage) for a group of indexes without digging through graphs for each index?  
I can see index usage with:  
GET /"index"/\_stats  
Is there a way to add a time range to get a monthly total?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 20, 2023, 4:36am UTC](https://discuss.elastic.co/t/monthly-index-usage/336407/2 "2023-06-20T04:36:25Z")

</div>

Hello and welcome,

How are you creating your indices? Are you using daily indices? Each of your team use some specific index or they may share some indices?

The `<index>/_stats` API can give you some information about the storage used by each indice.

If you are using daily indices you would need to query this API frequently and store the results somewhere to be able to calculate the monthly average usage.

---

<div class="post-metadata">

**Author:** ![IsaacD](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@IsaacD](https://discuss.elastic.co/u/IsaacD)\
**Post date:** [June 20, 2023, 10:40pm UTC](https://discuss.elastic.co/t/monthly-index-usage/336407/3 "2023-06-20T22:40:14Z")

</div>

Indexs are created using index templates.  
I am unsure if they are daily indices. They do have dates attached to the end and some indexes rotate quickly  
Each team uses their own specific indexes, none of them are shared.

---

<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:** [July 18, 2023, 10:40pm UTC](https://discuss.elastic.co/t/monthly-index-usage/336407/4 "2023-07-18T22:40:16Z")

</div>

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