# Huge monitoring-es indexes

**URL:** https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102
**Category:** Elasticsearch
**Created:** [September 24, 2021, 5:00pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102 "2021-09-24T17:00:27Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Daniele\_Renda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniele_renda/32/39939_2.png) [@Daniele\_Renda](https://discuss.elastic.co/u/Daniele_Renda)
#### Post date: [September 24, 2021, 5:00pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/1 "2021-09-24T17:00:27Z")

</div>

Today my ES cluster on Elastic cloud frozen due to high CPU consumption. There was not too much pressure with requests so I took a look at indexes to check if there is some problem.  
I found a lot of old indexes from apm that were almost empty but of course they took 1 shard for each one.  
After a bit of cleaning I arrived to this point:

- 213 indexes (only 10 are mine, the other are kibana and hidden indexes)
- 21,135,526 documents
- all indexes take 6GB of disk space
- primary shards 213
- 1 node 59.60GB free disk space, with 2GB RAM

This is a screenshot of the first 100 indexes:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/0/00b5020ebca80262e52f58ac4dee83c40c943c5d.png)

It seems to mee that `monitoring-es` are becoming huge. In 3 days there are 3GB of indexes.

1. Do you think is normal the size of monitoring-es\*?
2. I don't see any rolling policy on monitoring-es\*. Should I create it?
3. Could the sudden increase of those indexes one of the causes that hit the CPU?

Any advice is appreciated, thanks.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 27, 2021, 12:29am UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/2 "2021-09-27T00:29:46Z")

</div>

That sounds like a pretty reasonable size, yes. I don't think those indices use ILM as yet, but they will roll over per day which is why they are date named.

As for if they'd cause an issue, that's hard to say. What is the output from the `_cluster/stats?pretty&human` API?

---

<div class="post-metadata">

### Author: ![Daniele\_Renda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniele_renda/32/39939_2.png) [@Daniele\_Renda](https://discuss.elastic.co/u/Daniele_Renda)
#### Post date: [September 27, 2021, 9:46pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/3 "2021-09-27T21:46:48Z")

</div>

Thanks for your reply. You are right, those indexes roll over per day. I see it keeps last 3 days.  
This is the result of cluster stats: [{ "\_nodes" : { "total" : 1, "successful" : 1, "failed" : 0 - Pastebin.com](https://pastebin.com/EsMnHfSX)

Thanks

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [September 27, 2021, 9:55pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/4 "2021-09-27T21:55:47Z")

</div>

Hi @Daniele_Renda welcome to the community ....

A couple thoughts it is generally not best practice to send your cluster monitoring data to the same cluster as your search data / workload... Architecture principal of separation of concerns. See [Here](https://www.elastic.co/guide/en/cloud/current/ec-monitoring-setup.html#ec_enable_logs_and_metrics)

I see from the pastebin that you are are running a Single 2GB RAM / 60GB SSD Node. That is a very small but functional cluster.

BUT I also noticed you have ~213 Indices with 213 Shards. That is a **very** high number of shards for such a small node. [Generally we suggest fewer than 20 shards per 1GB of JVM Heap](https://www.elastic.co/guide/en/elasticsearch/reference/current/size-your-shards.html#shard-count-recommendation)... you have 1GB JVM heap so you are 10x over the number of best practice shards.

You will most likely run into performance issues unless you reduce the number of indices / shards or increase the size of your nodes.

---

<div class="post-metadata">

### Author: ![Daniele\_Renda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniele_renda/32/39939_2.png) [@Daniele\_Renda](https://discuss.elastic.co/u/Daniele_Renda)
#### Post date: [September 28, 2021, 9:06am UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/5 "2021-09-28T09:06:24Z")

</div>

> [@stephenb](#):
>
> **ery** high number of shards

Thanks Stephen, your suggestions are really appreciated. I know about the monitoring data and I had in plan to buy another cluster to send them.  
About the 213 shards, I see what you mean but the point is I've just 10 indexes with 10 shards. The remaining 203 are indexes created from kibana and ES and are almost empty/not used.  
Do you suggest to delete them? Could you suggest a secure index patter in order to remove only indexes that are not needed?

Except node monitoring I don't need to much else, I don't use Kibana if not for manager the cluster and see monitoring.

Thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 28, 2021, 9:40am UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/6 "2021-09-28T09:40:34Z")

</div>

> [@Daniele\_Renda](#):
>
> Do you suggest to delete them?

If you aren't using them just delete them all.

---

<div class="post-metadata">

### Author: ![Daniele\_Renda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniele_renda/32/39939_2.png) [@Daniele\_Renda](https://discuss.elastic.co/u/Daniele_Renda)
#### Post date: [September 28, 2021, 8:17pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/7 "2021-09-28T20:17:40Z")

</div>

Thanks, for sure I'm not using them but I'm not sure if they are needed from Kibana itself. I'm on Elastic cloud.  
Where can I find a matrix of all ELK index patterns ? My fear is to delete some index that is used in this Elastic cloud configuration and to break something (more than 200 indexes are hidden and so system index, when I try to delete them I've a scary alert ) 😬

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fbdb73b63773378b0d50954dd2907f9f251d4b59.png)

Thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 28, 2021, 10:23pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/8 "2021-09-28T22:23:01Z")

</div>

There's not, no.

You can safely delete `.monitoring*` though, your history will be gone but it'll recreate. The same with that Kibana log one.  
Also if you're on 7.15 then you can look to delete things with an earlier version in the name.

---

<div class="post-metadata">

### Author: ![Daniele\_Renda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniele_renda/32/39939_2.png) [@Daniele\_Renda](https://discuss.elastic.co/u/Daniele_Renda)
#### Post date: [September 29, 2021, 12:28pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/9 "2021-09-29T12:28:25Z")

</div>

> [@warkolm](#):
>
> n you can look to delete things with an earlier version in the na

Thanks, very clear and useful!!

---

<div class="post-metadata">

### Author: ![Daniele\_Renda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniele_renda/32/39939_2.png) [@Daniele\_Renda](https://discuss.elastic.co/u/Daniele_Renda)
#### Post date: [October 1, 2021, 8:37pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/10 "2021-10-01T20:37:41Z")

</div>

@warkolm do you think it's safe to delete these indexes:

- .siem-signals-default-000008 (I don't use siem BTW)

- .kibana\_1, .kibana\_2, .kibana\_3.... keeping only .kibana\_7.15.0\_001 (current Kibana's version)

- .ds-.slm-history-5-2021.06.16-000005

Thanks

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 10, 2021, 11:06pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/11 "2021-10-10T23:06:44Z")

</div>

Yep!

---

<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: [November 7, 2021, 11:07pm UTC](https://discuss.elastic.co/t/huge-monitoring-es-indexes/285102/12 "2021-11-07T23:07:23Z")

</div>

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