hi all,
trying to find out best way of deleting old indices automatically. couldn’t manage with that rollover example of OSearch document. This one is working but just want to make sure if this is a correct or any objection of using this way. thanks in advance.
{
"id": "yy-visualpolicy",
"seqNo": 89895,
"primaryTerm": 1,
"policy": {
"policy_id": "yy-visualpolicy",
"description": "yy-test-policy",
"last_updated_time": 1644237141373,
"schema_version": 12,
"error_notification": null,
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [],
"transitions": [
{
"state_name": "yy-delete",
"conditions": {
"min_index_age": "3h"
}
}
]
},
{
"name": "yy-delete",
"actions": [
{
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"exampleindex*"
],
"priority": 1,
"last_updated_time": 1644231879662
}
]
}
}