# Dynamic index creation

**URL:** https://discuss.elastic.co/t/dynamic-index-creation/362280
**Category:** Elasticsearch
**Created:** [July 1, 2024, 7:52am UTC](https://discuss.elastic.co/t/dynamic-index-creation/362280 "2024-07-01T07:52:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)
#### Post date: [July 1, 2024, 10:11am UTC](https://discuss.elastic.co/t/dynamic-index-creation/362280/2 "2024-07-01T10:11:59Z")

</div>

> [@siakc](#):
>
> From what I understand ES tries to create index by some rules from incoming logs (which I think we call documents).  
> Now I have too many fields in my docs which ES creates index for. What I need is to stop it from including each new field it sees into index.  
> I could create and index template and somehow tell ES to only include the fields that are in that template.  
> Am I seeing it from the right angle and is that what I want to do sane and valid? If so how can I achieve it?

Please see if this helps to clarify: [How to index only some of the fields of the entire document? - #9 by stephenb](https://discuss.elastic.co/t/how-to-index-only-some-of-the-fields-of-the-entire-document/323910/9)

---

_[View the full topic](https://discuss.elastic.co/t/dynamic-index-creation/362280)._
