Hi there,
I was trying to hook up slack with watcher on our elastic cloud instance and have run into some issues.
Here is how I updated elasticsearch.yml :
xpack.notification.slack:
account:
monitoring:
url: <webhook url>
And here is how created a new watch -
"actions": {
"notify-slack": {
"throttle_period" : "5m",
"slack": {
"account" : "monitoring",
"message": {
"to" : ["the channel"] ,
"text" : "There are {{ctx.payload.hits.total}} documents in your index. Threshold is 10."}
}
}
}
But I keep getting this error -
Watcher: [illegal_argument_exception] no account found for name: [monitoring]
Any clue?
Thanks
-Nilesh