Hello everybody,
I created an ILM policy :
PUT _ilm/policy/hot-warm-cold-delete-60days-policy
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_size":"20gb",
"max_age":"30d"
},
"set_priority": {
"priority": 50
}
}
},
"warm": {
"actions": {
"forcemerge": {
"max_num_segments": 1
},
"shrink": {
"number_of_shards": 1
},
"allocate": {
"require": {
"data": "warm"
}
},
"set_priority": {
"priority": 25
}
}
},
"cold": {
"min_age": "30d",
"actions": {
"set_priority": {
"priority": 0
},
"freeze": {},
"allocate": {
"require": {
"data": "cold"
}
}
}
},
"delete": {
"min_age": "60d",
"actions": {
"delete": {}
}
}
}
}
}
and then I created a template
PUT _template/packetbeat
{
"index_patterns": ["packetbeat-*"],
"settings": {
"number_of_shards": 10,
"number_of_replicas": 1,
"index.lifecycle.name": "hot-warm-cold-delete-60days-policy",
"index.lifecycle.rollover_alias": "packetbeat"
}
}
and then create the first index :
PUT packetbeat-000001
{
"aliases": {
"packetbeat": {
"is_write_index": true
}
}
}
It was working perfectly, but after 2 days I went to see the policy configuration and I found that the configuration changed and it's not the first time that arrives, even when I edit it it begin working and then after some time it changes again.
Could someone tell me what I am doing wrong please ?
Thanks for your help