# Index template and index pattern

**URL:** <https://discuss.elastic.co/t/index-template-and-index-pattern/377897>\
**Category:** Kibana\
**Created:** [May 7, 2025, 9:53am UTC](https://discuss.elastic.co/t/index-template-and-index-pattern/377897 "2025-05-07T09:53:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristina\_Marletta\_Li](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cristina_marletta_li/32/137793_2.png) [@Cristina\_Marletta\_Li](https://discuss.elastic.co/u/Cristina_Marletta_Li)\
**Post date:** [May 7, 2025, 9:53am UTC](https://discuss.elastic.co/t/index-template-and-index-pattern/377897/1 "2025-05-07T09:53:34Z")

</div>

Does an index template's index pattern apply to datastreams (if any) or to indexes attached to the datastream?

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [May 8, 2025, 10:11pm UTC](https://discuss.elastic.co/t/index-template-and-index-pattern/377897/2 "2025-05-08T22:11:57Z")

</div>

datastream index are start with .ds and yes template setting will be apply to new index when it gets created. you also need ILM policy with it.
