Periodically an ISM policy goes into Failed Transition state. We would like to be alerted when this happens so we can correct it. Is there a way to get notified (send to SNS topic for example) if a Managed index goes into this state ?
This is our ILM policy:
{
“policy”: {
“policy_id”: “hot_ultrawarm7d_delete30d”,
“description”: “hot_ultrawarm7d_delete30d”,
“last_updated_time”: 1593716581420,
“schema_version”: 1,
“error_notification”: null,
“default_state”: “hot”,
“states”: [
{
“name”: “hot”,
“actions”: ,
“transitions”: [
{
“state_name”: “warm”,
“conditions”: {
“min_index_age”: “7d”
}
}
]
},
{
“name”: “warm”,
“actions”: [
{
“retry”: {
“count”: 5,
“backoff”: “exponential”,
“delay”: “1h”
},
“warm_migration”: {}
}
],
“transitions”: [
{
“state_name”: “delete”,
“conditions”: {
“min_index_age”: “30d”
}
}
]
},
{
“name”: “delete”,
“actions”: [
{
“delete”: {}
}
],
“transitions”:
}
]
}
}