# Best Practices for templates created for Indexing?

**URL:** <https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301>\
**Category:** Elasticsearch\
**Created:** [January 6, 2021, 9:00am UTC](https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301 "2021-01-06T09:00:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohamed.farhan](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mohamed.farhan](https://discuss.elastic.co/u/mohamed.farhan)\
**Post date:** [January 6, 2021, 9:00am UTC](https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301/1 "2021-01-06T09:00:16Z")

</div>

Hello,

Can anyone would let me know if there are best practices for creating templates for indices?

---

<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:** [January 6, 2021, 8:40pm UTC](https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301/2 "2021-01-06T20:40:21Z")

</div>

Not really, no.  
What problem are you trying to solve?

---

<div class="post-metadata">

**Author:** ![mohamed.farhan](https://avatars.discourse-cdn.com/v4/letter/m/f1d935/32.png) [@mohamed.farhan](https://discuss.elastic.co/u/mohamed.farhan)\
**Post date:** [January 7, 2021, 4:26am UTC](https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301/3 "2021-01-07T04:26:12Z")

</div>

Like if I can have multiple templates along with one general template?

eg: I have a template for IIS logs, another one for MSSQL logs and the other general template which for cross-index search (Common index pattern)

---

<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:** [January 11, 2021, 4:47am UTC](https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301/4 "2021-01-11T04:47:24Z")

</div>

Take a look at the `order` parameter here [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html#put-index-template-v1-api-query-params](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html#put-index-template-v1-api-query-params)

---

<div class="post-metadata">

**Author:** ![sjne](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@sjne](https://discuss.elastic.co/u/sjne)\
**Post date:** [January 14, 2021, 11:18am UTC](https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301/5 "2021-01-14T11:18:53Z")

</div>

Sorry if I hijack the thread, but is this parameter removed with the new composable index templates? If so, how can I have an index match multiple templates in ES 7.10? Thanks!

---

<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:** [February 11, 2021, 11:18am UTC](https://discuss.elastic.co/t/best-practices-for-templates-created-for-indexing/260301/6 "2021-02-11T11:18:58Z")

</div>

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