# Legacy index templates

**URL:** <https://discuss.elastic.co/t/legacy-index-templates/273763>\
**Category:** Elasticsearch\
**Created:** [May 23, 2021, 3:48pm UTC](https://discuss.elastic.co/t/legacy-index-templates/273763 "2021-05-23T15:48:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![6NMgfDwZ3](https://avatars.discourse-cdn.com/v4/letter/6/ac91a4/32.png) [@6NMgfDwZ3](https://discuss.elastic.co/u/6NMgfDwZ3)\
**Post date:** [May 23, 2021, 3:48pm UTC](https://discuss.elastic.co/t/legacy-index-templates/273763/1 "2021-05-23T15:48:21Z")

</div>

Hello,

Environment:

- Elasticsearch 7.12.1 (Basic License)
- Kibana 7.12.1 (Basic License)
- Filebeat 7.12.1 (Basic License)
- Ubuntu 21.04

I have an index template named `myapp` the index pattern `myapp-*`.

This index template created by Filebeat.  
(The field mapping is dynamically evolving (as our software too) so I very often delete the `myapp` template and the related indexes / stuffs from ELK, that's why I create index mapping through Filebeat)

Filebeat relevant part of config:

```auto
setup.dashboards:
  index: "myapp-*"

setup.template:
  name: "myapp"
  pattern: "myapp-*"
  overwrite: true
  append_fields:
    - name: "timestamp"
      type: "date_nanos"
    - name: "mytimestamp"
      type: "date_nanos"

setup.template.settings:
  index.number_of_shards: 1

```

Why "myapp" index template appears in "Legacy index templates" list (Stack Managament/Data/Index Managament/Index Templates) instead in "normal" templates list?

What's wrong with that method, how can I improve it?

---

<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:** [June 20, 2021, 3:48pm UTC](https://discuss.elastic.co/t/legacy-index-templates/273763/2 "2021-06-20T15:48:26Z")

</div>

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