# Where elasticsearch templates are stored?

**URL:** <https://discuss.elastic.co/t/where-elasticsearch-templates-are-stored/39518>\
**Category:** Elasticsearch\
**Created:** [January 19, 2016, 9:18am UTC](https://discuss.elastic.co/t/where-elasticsearch-templates-are-stored/39518 "2016-01-19T09:18:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lakal\_Malimage](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@Lakal\_Malimage](https://discuss.elastic.co/u/Lakal_Malimage)\
**Post date:** [January 19, 2016, 9:18am UTC](https://discuss.elastic.co/t/where-elasticsearch-templates-are-stored/39518/1 "2016-01-19T09:18:57Z")

</div>

I would like to know where the elasticsearch templates are stored?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 19, 2016, 9:29am UTC](https://discuss.elastic.co/t/where-elasticsearch-templates-are-stored/39518/2 "2016-01-19T09:29:37Z")

</div>

Per [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html) - `IP:9200/_template`

---

<div class="post-metadata">

**Author:** ![Lakal\_Malimage](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@Lakal\_Malimage](https://discuss.elastic.co/u/Lakal_Malimage)\
**Post date:** [January 19, 2016, 10:42am UTC](https://discuss.elastic.co/t/where-elasticsearch-templates-are-stored/39518/3 "2016-01-19T10:42:04Z")

</div>

Hi Mark,

I would like to know the path of the file they are stored in. I'm asking this because we recently lost these templates suddenly. We had to insert them again through the API.

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [January 19, 2016, 5:17pm UTC](https://discuss.elastic.co/t/where-elasticsearch-templates-are-stored/39518/4 "2016-01-19T17:17:10Z")

</div>

What version of elasticsearch are you using? Using file based templates, an  
amazingly useful feature, was removed in 2.0.

Pre 2.0, they were in config/templates:

[https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-templates.html#config](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-templates.html#config)

---

<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:** [July 5, 2017, 11:23pm UTC](https://discuss.elastic.co/t/where-elasticsearch-templates-are-stored/39518/5 "2017-07-05T23:23:22Z")

</div>


