Setting up Index Lifecycle Policies

We're currently working on setting up a more automated way of keeping our indices and shard count low and saw 'Index Lifecycle Policies' in Kibana which seems very powerful and easy to setup. We've created a policy, but how do we actually apply it to the existing indices? When I go to apply the created policy against our indices, the templates I see only seem to be the system generated templates and I don't see what I think should be a template for our actual logs.

Is there a way to see what template an index is using? None of the existing templates sound correct for what I think the template should be but I'm unsure. The screenshot attached shows the existing templates, but I'm unsure what, if any of these is actually the correct template.

Thank you in advance!

Hi, you can get the associated index template for your data calling the following API
GET _index_template
This will give you a fill list of all your templates which reports the associated indices patterns

1 Like

D'oh! I was looking at the template API but overlooked this. This gave me the information I needed, thank you markov00!

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