How to Alert on "Failed Transition State" for a Managed Index

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”:
}
]
}
}

Hey @KevC,

Could you clarify a bit more about the failed transition state? Where in the policy does it fail and what is the error?

And yes there is a way for you to be notified of any failures by using the error notifications which can be read about here: