# Default index template for streams

**URL:** <https://discuss.elastic.co/t/default-index-template-for-streams/268847>\
**Category:** Elasticsearch\
**Tags:** datastreams\
**Created:** [March 30, 2021, 11:52pm UTC](https://discuss.elastic.co/t/default-index-template-for-streams/268847 "2021-03-30T23:52:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigothy](https://avatars.discourse-cdn.com/v4/letter/c/258eb7/32.png) [@craigothy](https://discuss.elastic.co/u/craigothy)\
**Post date:** [March 30, 2021, 11:52pm UTC](https://discuss.elastic.co/t/default-index-template-for-streams/268847/1 "2021-03-30T23:52:52Z")

</div>

Is there a way to create a default index template for the newer streams from the Elastic Agent for example. I am wanting to set the replica count to 0 for all streams. This was pretty easy to do for the legacy templates but not completely certain how to do this for the newer templates that are for the stream type. 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:** [April 27, 2021, 11:53pm UTC](https://discuss.elastic.co/t/default-index-template-for-streams/268847/2 "2021-04-27T23:53:09Z")

</div>

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