# - 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.dhcp-*/_ilm/explain PUT _ilm/policy/microsoft.dhcp { "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, "include": { "_name": "", "_ip": "" }, "exclude": { "_name": "", "_ip": "" }, "require": { "_name": "", "_ip": "" } }, "shrink": { "number_of_shards": 1 }, "forcemerge": { "max_num_segments": 1 } } }, "cold": { "min_age": "30d", "actions": { "set_priority": { "priority": 0 }, "freeze": {}, "allocate": { "number_of_replicas": 1, "include": { "_name": "", "_ip": "" }, "exclude": { "_name": "", "_ip": "" }, "require": { "_name": "", "_ip": "" } } } } } } }