created an index template and attached the ilm policy to it.
finally created an index using create index API.
when i checked the index under index management section in kibana, the ilm policy that i created was attached to the index and the index started to rollover to a new index after a few minutes. But the problem here is older indices are not getting deleted. below is my ilm policy,
PUT _ilm/policy/tmmt
{
"policy": {
"phases": {
"hot": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_size": "50gb",
"max_age": "5m",
"max_docs": 5
},
"set_priority": {
"priority": 100
}
}
},
"warm": {
"min_age": "3m",
"actions": {
"set_priority": {
"priority": 50
}
}
},
"delete": {
"min_age": "1m",
"actions": {}
}
}
}
} below is the summary of my index,
i got it @warkolm , it should be like the below code i think. i added the delete under actionsmanually here and created a new policy using ILM API. i am wondering why that delete was not automatically added when i created the ilm policy using Kibana UI ??
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.