# Template with asterisk name

**URL:** <https://discuss.elastic.co/t/template-with-asterisk-name/224452>\
**Category:** Elasticsearch\
**Created:** [March 20, 2020, 4:26pm UTC](https://discuss.elastic.co/t/template-with-asterisk-name/224452 "2020-03-20T16:26:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulkon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fulkon/32/78258_2.png) [@fulkon](https://discuss.elastic.co/u/fulkon)\
**Post date:** [March 20, 2020, 4:26pm UTC](https://discuss.elastic.co/t/template-with-asterisk-name/224452/1 "2020-03-20T16:26:21Z")

</div>

Got an ELK stack with template name \*. I have created new index template with normal name, but how can I delete an index template with asterisk name?

Thank You

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 23, 2020, 11:45am UTC](https://discuss.elastic.co/t/template-with-asterisk-name/224452/2 "2020-03-23T11:45:27Z")

</div>

There is no good workaround for this, except deleting all and recreating all but the one `*` template. Elasticsearch should probably prevent that case by not allowing to store such a template. Let's see if I can come up with a PR.

---

<div class="post-metadata">

**Author:** ![fulkon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fulkon/32/78258_2.png) [@fulkon](https://discuss.elastic.co/u/fulkon)\
**Post date:** [March 24, 2020, 7:53am UTC](https://discuss.elastic.co/t/template-with-asterisk-name/224452/3 "2020-03-24T07:53:24Z")

</div>

This template was uploaded by logstash settings:

```auto
    template => "/etc/logstash/template/hotwarm.json"
    template_name => "*"

```

And elasticsearch allowed 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:** [April 21, 2020, 7:53am UTC](https://discuss.elastic.co/t/template-with-asterisk-name/224452/4 "2020-04-21T07:53:26Z")

</div>

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