# Check if an index is using a specific template

**URL:** https://discuss.elastic.co/t/check-if-an-index-is-using-a-specific-template/145514
**Category:** Elasticsearch
**Created:** [August 22, 2018, 8:10am UTC](https://discuss.elastic.co/t/check-if-an-index-is-using-a-specific-template/145514 "2018-08-22T08:10:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)
#### Post date: [August 22, 2018, 8:10am UTC](https://discuss.elastic.co/t/check-if-an-index-is-using-a-specific-template/145514/1 "2018-08-22T08:10:44Z")

</div>

Is there a way to check if the mapping of an index comes from a specific template?

When performing

```
GET index_name

```

I am getting a `mappings` json field but how can I say if this was auto generated or came from a template I instructed it to when sending it to elasticsearch as in ...:

```
  elasticsearch {
    hosts => ["elasticsearch:9200"]
    index => "index_name"
    template => "/usr/share/logstash/files/mapping_users_index_template.json"
    template_name => "mapping_users"
    manage_template => true
    template_overwrite => true
    document_type => _doc
}
```

---

<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: [August 22, 2018, 8:13am UTC](https://discuss.elastic.co/t/check-if-an-index-is-using-a-specific-template/145514/2 "2018-08-22T08:13:36Z")

</div>

There's no way to do that unfortunately. Feel free to raise a feature request for something though 🙂

---

<div class="post-metadata">

### Author: ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)
#### Post date: [August 22, 2018, 8:16am UTC](https://discuss.elastic.co/t/check-if-an-index-is-using-a-specific-template/145514/3 "2018-08-22T08:16:36Z")

</div>

Thanks for the reply; that would indeed be sth useful I think, to be able to know the origin of your mapping;

---

<div class="post-metadata">

### Author: ![pkaramol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkaramol/32/22610_2.png) [@pkaramol](https://discuss.elastic.co/u/pkaramol)
#### Post date: [August 22, 2018, 8:22am UTC](https://discuss.elastic.co/t/check-if-an-index-is-using-a-specific-template/145514/4 "2018-08-22T08:22:29Z")

</div>

[FR](https://github.com/elastic/elasticsearch/issues/33053) opened

---

<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: [September 19, 2018, 8:22am UTC](https://discuss.elastic.co/t/check-if-an-index-is-using-a-specific-template/145514/5 "2018-09-19T08:22:34Z")

</div>

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