# Configuring indices for monitoring using new template API

**URL:** <https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [August 16, 2021, 11:05am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533 "2021-08-16T11:05:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aoi1](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aoi1](https://discuss.elastic.co/u/aoi1)\
**Post date:** [August 16, 2021, 11:05am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/1 "2021-08-16T11:05:28Z")

</div>

Hello!  
I have a question.  
In [this document](https://www.elastic.co/guide/en/elasticsearch/reference/current/config-monitoring-indices.html), it uses \_template API.  
But I recognize the \_template API is deprecated in Elasticsearch version 7.8.  
Is this document correct in the version after 7.8?  
I am trying to configure indices for monitoring, so I was wondering if I should use \_template API in Elasticsearch version 7.8 and after.  
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:** [August 17, 2021, 1:04am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/2 "2021-08-17T01:04:34Z")

</div>

We do not support the alteration of system indices like the Monitoring ones.

Can you please elaborate more on what you are trying to do, and why.

---

<div class="post-metadata">

**Author:** ![aoi1](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aoi1](https://discuss.elastic.co/u/aoi1)\
**Post date:** [August 17, 2021, 1:15am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/3 "2021-08-17T01:15:22Z")

</div>

Thanks for your reply!  
So do you mean the documentation about "Configuring indices for monitoring" is now unsupported?  
It would be nice to have a comment on the document!  
I am trying to increase the number of shards, because my monitoring index is growing.

---

<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:** [August 17, 2021, 1:33am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/4 "2021-08-17T01:33:44Z")

</div>

Growing how large?

> [@aoi1](#):
>
> So do you mean the documentation about "Configuring indices for monitoring" is now unsupported?

No I mean altering the indices that are used for internal system process is not a supported practise. If you change them, those changes are likely to be reverted during future upgrades.

---

<div class="post-metadata">

**Author:** ![aoi1](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aoi1](https://discuss.elastic.co/u/aoi1)\
**Post date:** [August 17, 2021, 2:15am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/5 "2021-08-17T02:15:05Z")

</div>

It is growing up to 50GB/index now, and I am trying to add monitoring targets so it will get bigger.  
Okay, I am not trying to alternate it, but trying to set the number of replicas using the template as this document explains. → [Configuring indices for monitoring | Elasticsearch Guide [7.14] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/config-monitoring-indices.html)  
But this uses the legacy \_template API, and was wondering if this is supported after version 7.8 (which \_template API has been deprecated)

---

<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:** [August 17, 2021, 2:57am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/6 "2021-08-17T02:57:52Z")

</div>

You should find that most of the templates have `"auto_expand_replicas" : "0-1"`, did you want more than 1 replica?

---

<div class="post-metadata">

**Author:** ![aoi1](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@aoi1](https://discuss.elastic.co/u/aoi1)\
**Post date:** [August 17, 2021, 4:03am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/7 "2021-08-17T04:03:17Z")

</div>

I am so sorry, I wanted to increase the number of shards, not replicas.

---

<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:** [September 14, 2021, 4:04am UTC](https://discuss.elastic.co/t/configuring-indices-for-monitoring-using-new-template-api/281533/8 "2021-09-14T04:04:13Z")

</div>

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