ILM policy and template

405 Views Asked by At

Can I know whether can I use ilm template for my custom index. Will it rollover if yes to what value? My index is created in logstash. My index is indexname-team. Will it rollover using the template? What is the name?

1

There are 1 best solutions below

0
On

The rollover happens base on the condition you have configured in the policy. The name of the roll over index would be incremented the integer as prefix of the index name.

For example, If your index name is sample-team, then below are the rollover indices.

sample-team-000001   // This is the initial index that you have created manually
sample-team-000002    // after first all other will be created automatic by policy
sample-team-000003
sample-team-000004

Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-lifecycle-policy.html