Check if an index is using a specific template

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
}

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

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

FR opened

1 Like

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