# Permanent Mapping

**URL:** <https://discuss.elastic.co/t/permanent-mapping/230195>\
**Category:** Elasticsearch\
**Created:** [April 28, 2020, 2:20pm UTC](https://discuss.elastic.co/t/permanent-mapping/230195 "2020-04-28T14:20:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksremo](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@ksremo](https://discuss.elastic.co/u/ksremo)\
**Post date:** [April 28, 2020, 2:20pm UTC](https://discuss.elastic.co/t/permanent-mapping/230195/1 "2020-04-28T14:20:54Z")

</div>

A Filebeat is delivering Data to Logstash and then to Elasticsearch.  
Per default (dynmac mapping?), all Fields are of Type "text".  
So i build a Mapping with the correct Types. I removed the Index, recreate it and push the mapping via api before indexing data.

The Problem is that these indizes how dates in their namen. Every Day a new Index is created.  
How to make the Mapping apply to all of these indizes?

Have i create a Index Template and then a Policy Rule to map each other?

---

<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:** [May 26, 2020, 2:20pm UTC](https://discuss.elastic.co/t/permanent-mapping/230195/2 "2020-05-26T14:20:55Z")

</div>

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