# Need to use {index} placeholder with index\_state\_management.rollover\_alias in index template

**URL:** https://discuss.elastic.co/t/need-to-use-index-placeholder-with-index-state-management-rollover-alias-in-index-template/360547
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [May 30, 2024, 10:10am UTC](https://discuss.elastic.co/t/need-to-use-index-placeholder-with-index-state-management-rollover-alias-in-index-template/360547 "2024-05-30T10:10:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jahanvi\_Patel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jahanvi_patel/32/122154_2.png) [@Jahanvi\_Patel](https://discuss.elastic.co/u/Jahanvi_Patel)
#### Post date: [May 30, 2024, 10:10am UTC](https://discuss.elastic.co/t/need-to-use-index-placeholder-with-index-state-management-rollover-alias-in-index-template/360547/1 "2024-05-30T10:10:24Z")

</div>

I have multiple indices with same name pattern and I need to rollover about 100 indices using Index life cycle management. I am unable to use same template for all. It is very tedious to generate 100 templates for same indices with same settings just different rollover alias.

I would like to do something like this:  
PUT \_template/rollover1  
{  
"index\_patterns": ["data-test\*"],  
"settings": {  
"index.opendistro.index\_state\_management.rollover\_alias": "{index}-rollover"  
},  
"aliases" : {  
"{index}-alias" : {}  
}  
}

{index} placeholder works with alias, all i need is someway to use it with rollover alias

---

<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: [May 30, 2024, 10:10am UTC](https://discuss.elastic.co/t/need-to-use-index-placeholder-with-index-state-management-rollover-alias-in-index-template/360547/2 "2024-05-30T10:10:25Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance. See [What is OpenSearch and the OpenSearch Dashboard? | Elastic](https://www.elastic.co/elasticsearch/opensearch) for more details.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 31, 2024, 12:38am UTC](https://discuss.elastic.co/t/need-to-use-index-placeholder-with-index-state-management-rollover-alias-in-index-template/360547/3 "2024-05-31T00:38:24Z")

</div>

As the bot said, we can't really help on that.

But did you look at [Cloud by Elastic](https://www.elastic.co/cloud), also available if needed from [AWS Marketplace](https://aws.amazon.com/marketplace/pp/Elasticsearch-Inc-Elasticsearch-Service-on-Elastic/B01N6YCISK), [Azure Marketplace](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure?tab=Overview) and [Google Cloud Marketplace](https://console.cloud.google.com/marketplace/details/endpoints/elasticsearch-service.gcpmarketplace.elastic.co)?

Cloud by elastic is one way to have access to **all features** , all managed by us. Think about what is there yet like Vector Search, Security, Monitoring, Reporting, ES|QL, Canvas, Maps UI, Alerting and built-in solutions named [Observability](https://www.elastic.co/observability), [Security](https://www.elastic.co/security) and what is coming next 🙂 ...
