Hiya,
I created a watcher for alerting when anomalies happens in a machine learning job, I also changed the action to alert through slack instead of mail. But when trying to simulate I get an error, I am still a noobie about this so I would really aprecciate your help.
Version 7.2.0
The output when I simulate it:
"actions": [
{
"id": "log",
"type": "logging",
"status": "failure",
"error": {
"root_cause": [
{
"type": "general_script_exception",
"reason": "Error running com.github.mustachejava.codes.DefaultMustache@a569020"
}
],
"type": "general_script_exception",
"reason": "Error running com.github.mustachejava.codes.DefaultMustache@a569020",
"caused_by": {
"type": "mustache_exception",
"reason": "Failed to get value for ctx.payload.aggregations.bucket_results.top_bucket_hits.hits.hits.0._source.job_id @[query-template:1]",
"caused_by": {
"type": "mustache_exception",
"reason": "0 @[query-template:1]",
"caused_by": {
"type": "index_out_of_bounds_exception",
"reason": "0"
}
}
}
}
},
{
"id": "slack_2",
"type": "slack",
"status": "failure",
"error": {
"root_cause": [
{
"type": "general_script_exception",
"reason": "Error running com.github.mustachejava.codes.DefaultMustache@53983561"
}
],
"type": "general_script_exception",
"reason": "Error running com.github.mustachejava.codes.DefaultMustache@53983561",
"caused_by": {
"type": "mustache_exception",
"reason": "Failed to get value for ctx.payload.aggregations.bucket_results.top_bucket_hits.hits.hits.0._source.job_id @[query-template:11]",
"caused_by": {
"type": "mustache_exception",
"reason": "0 @[query-template:11]",
"caused_by": {
"type": "index_out_of_bounds_exception",
"reason": "0"
}
}
}
}
}
]
},
"messages": []
}