# One index template for multiple indices

**URL:** <https://discuss.elastic.co/t/one-index-template-for-multiple-indices/242814>\
**Category:** Elasticsearch\
**Created:** [July 27, 2020, 10:19pm UTC](https://discuss.elastic.co/t/one-index-template-for-multiple-indices/242814 "2020-07-27T22:19:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![randoran](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@randoran](https://discuss.elastic.co/u/randoran)\
**Post date:** [July 27, 2020, 10:19pm UTC](https://discuss.elastic.co/t/one-index-template-for-multiple-indices/242814/1 "2020-07-27T22:19:43Z")

</div>

Is it possible to use one index template for multiple indices? I have an index pattern of `cw-*` so that it matches any index that starts with `cw-` But I have an ILM policy attached to this template. It has an alias but from my understanding the alias can only point to one index. Does this mean I will need separate index templates for each index created?

---

<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:** [July 27, 2020, 10:26pm UTC](https://discuss.elastic.co/t/one-index-template-for-multiple-indices/242814/2 "2020-07-27T22:26:23Z")

</div>

What version are you on, [things did change in 7.8](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html).

---

<div class="post-metadata">

**Author:** ![randoran](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@randoran](https://discuss.elastic.co/u/randoran)\
**Post date:** [July 31, 2020, 4:20pm UTC](https://discuss.elastic.co/t/one-index-template-for-multiple-indices/242814/3 "2020-07-31T16:20:50Z")

</div>

Verion 7.8

---

<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:** [August 28, 2020, 4:20pm UTC](https://discuss.elastic.co/t/one-index-template-for-multiple-indices/242814/4 "2020-08-28T16:20:54Z")

</div>

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