# Template already exists

**URL:** https://discuss.elastic.co/t/template-already-exists/287519
**Category:** Beats
**Tags:** filebeat
**Created:** [October 24, 2021, 8:31pm UTC](https://discuss.elastic.co/t/template-already-exists/287519 "2021-10-24T20:31:07Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![dev9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev9/32/81258_2.png) [@dev9](https://discuss.elastic.co/u/dev9)
#### Post date: [October 24, 2021, 8:31pm UTC](https://discuss.elastic.co/t/template-already-exists/287519/1 "2021-10-24T20:31:07Z")

</div>

Hi,  
how do I get rid of this template being mentioned in the log?

```auto
Attempting to connect to Elasticsearch version 7.15.1
**2021-10-24T16:24:25.161-0400	INFO	template/load.go:111	Template "my_template" already exists and will not be overwritten.**
2021-10-24T16:24:25.161-0400	INFO	[index-management]	idxmgmt/std.go:297	Loaded index template.

```

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 25, 2021, 12:09am UTC](https://discuss.elastic.co/t/template-already-exists/287519/2 "2021-10-25T00:09:15Z")

</div>

So that log line comes when the template that you've specified in your filebeat has already been loaded and And the `setup.template.overwrite` flag is `false` which is the default value.

That is a very common log line It really doesn't indicate there is an issue.

The question is @dev9 What do you want to accomplish?

Do you want to load the template again?

Do you want a completely clear out the template And never load it again?

Do you want the clear out the template and load it once again?

What are you trying to accomplish?

Also you should always share your config in a new thread so we can see what is set.

---

<div class="post-metadata">

### Author: ![dev9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev9/32/81258_2.png) [@dev9](https://discuss.elastic.co/u/dev9)
#### Post date: [October 25, 2021, 1:38am UTC](https://discuss.elastic.co/t/template-already-exists/287519/3 "2021-10-25T01:38:23Z")

</div>

Hi Stephen,  
I managed to resolve the index naming issue I had yesterday after your support then started to see that Info Log.  
I did create an index life cycle using the web portal and I was curious if that what caused this log to come up or not.

Thanks.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 25, 2021, 1:39am UTC](https://discuss.elastic.co/t/template-already-exists/287519/4 "2021-10-25T01:39:35Z")

</div>

That's a pretty benign log message It's very common because when filebeat has a template it checks to see if it's loaded and if it is loaded it doesn't overwrite it... That's pretty much default behavior.

---

<div class="post-metadata">

### Author: ![dev9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dev9/32/81258_2.png) [@dev9](https://discuss.elastic.co/u/dev9)
#### Post date: [October 25, 2021, 1:45am UTC](https://discuss.elastic.co/t/template-already-exists/287519/5 "2021-10-25T01:45:21Z")

</div>

Thank you, Stephen!.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [October 25, 2021, 1:48am UTC](https://discuss.elastic.co/t/template-already-exists/287519/6 "2021-10-25T01:48:37Z")

</div>

Although if that template and the data you're trying to pump into the index it uses that template are in conflict that could cause some issues but I don't suspect it is.

---

<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: [November 22, 2021, 3:48am UTC](https://discuss.elastic.co/t/template-already-exists/287519/7 "2021-11-22T03:48:44Z")

</div>

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