# - Step 1 Load this template in Index Templates # - Step 2 Ensure Logstash ILM is configured in the script (see below) # - Step 3 After loading the policy in Dev Tools, check the policy: GET /microsoft.dns-*/_ilm/explain PUT _ilm/policy/microsoft.dns { "policy": { "phases": { "hot": { "actions": { "rollover": { "max_primary_shard_size": "1GB", "max_age": "30d" } } }, "warm": { "min_age": "30d", "actions": { "set_priority": { "priority": 50 }, "allocate": { "number_of_replicas": 1 }, "shrink": { "number_of_shards": 1 }, "forcemerge": { "max_num_segments": 1 } } }, "cold": { "min_age": "30d", "actions": { "set_priority": { "priority": 0 } } } } } }