Hi Guys,
Opensearch 1.1
Just bouncing between docs and braking head, what could be possible wrong with “rollover alias”.
Original Message is " ```
{
“message”: “Missing alias or not the write index when rollover [index=xyz-2022-0x-xx]”
}
![image|690x136](upload://cWqe76UwYXSzMCQlRtK6eRJrKnp.png)
"policy": {
"policy_id": "test_24_03",
"description": "testing deletion workflow",
"last_updated_time": xxx,
"schema_version": 12,
"error_notification": null,
"default_state": "hot",
"states": [
{
"name": "hot",
"actions": [
{
"rollover": {
"min_index_age": "1m"
}
}
],
"transitions": [
{
"state_name": "warm"
}
]
},
{
"name": "warm",
"actions": [
{
"replica_count": {
"number_of_replicas": 5
}
}
],
"transitions": [
{
"state_name": "delete",
"conditions": {
"min_index_age": "30m"
}
}
]
},
{
"name": "delete",
"actions": [
{
"notification": {
"destination": {
"custom_webhook": {
"path": null,
"header_params": {},
"password": null,
"scheme": null,
"port": -1,
"query_params": {},
"host": null,
"url": "https://xx",
"username": null
}
},
"message_template": {
"source": "The index {{ctx.action.name}} is being deleted",
"lang": "mustache"
}
}
},
{
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"log-*"
],
"priority": 0,
"last_updated_time": 0000000
}
]
}
}
However, I have set up rollover alias in "Edit rollover alias" under "Policy managed indices"