Hi, team!
- I created an ILM
PUT _ilm/policy/120-days-default
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_primary_shard_size": "30gb",
"max_age": "7d"
}
}
},
"warm": {
"min_age": "14d",
"actions": {
"forcemerge": {
"max_num_segments": 1
},
"shrink": {
"number_of_shards": 1
}
}
},
"cold": {
"min_age": "30d",
"actions": {}
},
"delete": {
"min_age": "120d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
},
"_meta": {
"managed": true
}
}
}
- Attached the index
{
"indices" : {
"my_index-000001" : {
"index" : "my_index-000001",
"managed" : true,
"policy" : "120-days-default",
"lifecycle_date_millis" : 1669129036430,
"age" : "52.1m",
"phase" : "hot",
"phase_time_millis" : 1669130711445,
"action" : "complete",
"action_time_millis" : 1669130975655,
"step" : "complete",
"step_time_millis" : 1669130975655,
"phase_execution" : {
"policy" : "120-days-default",
"phase_definition" : {
"min_age" : "0ms",
"actions" : {
"rollover" : {
"max_primary_shard_size" : "30gb",
"max_age" : "7d"
}
}
},
"version" : 1,
"modified_date_in_millis" : 1669130682750
}
}
}
}
- Specified is_write_index: true
my_index-000001 : {
"aliases": {
"my_index" : {
"is_write_index" : true
}
}
}
But when I run the check POST my_index/_rollover?dry_run, condition field is empty
{
"acknowledged" : false,
"shards_acknowledged" : false,
"old_index" : "my_index-000001",
"new_index" : "my_index-000002",
"rolled_over" : false,
"dry_run" : true,
"conditions" : {}
}
Why is the conditions field empty? What did I miss?