Devis
Devis

Reputation: 1

ILM policy and template

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?

Upvotes: 0

Views: 581

Answers (1)

Sagar Vaghela
Sagar Vaghela

Reputation: 1273

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

Upvotes: 0

Related Questions