# Data streams and Analyzers

**URL:** https://discuss.elastic.co/t/data-streams-and-analyzers/347697
**Category:** Elasticsearch
**Created:** [November 22, 2023, 7:55am UTC](https://discuss.elastic.co/t/data-streams-and-analyzers/347697 "2023-11-22T07:55:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mertozturkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mertozturkk/32/126371_2.png) [@Mertozturkk](https://discuss.elastic.co/u/Mertozturkk)
#### Post date: [November 22, 2023, 7:55am UTC](https://discuss.elastic.co/t/data-streams-and-analyzers/347697/1 "2023-11-22T07:55:05Z")

</div>

When we create an index, we can add a custom analyzer to text fields. Can we do the same in a datastream?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [November 22, 2023, 8:04am UTC](https://discuss.elastic.co/t/data-streams-and-analyzers/347697/2 "2023-11-22T08:04:35Z")

</div>

As you do not control the creation of data stream indices you need to enforce mappings through an index template.

---

<div class="post-metadata">

### Author: ![Mertozturkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mertozturkk/32/126371_2.png) [@Mertozturkk](https://discuss.elastic.co/u/Mertozturkk)
#### Post date: [November 22, 2023, 8:06am UTC](https://discuss.elastic.co/t/data-streams-and-analyzers/347697/3 "2023-11-22T08:06:12Z")

</div>

Thank you, I will try this way

---

<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: [December 20, 2023, 8:07am UTC](https://discuss.elastic.co/t/data-streams-and-analyzers/347697/4 "2023-12-20T08:07:07Z")

</div>

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