Mattermost webhook integration

#1

Hello,

I am having an issue in integrating Mattermost to the Kibana Alerting Destination. I couldn’t able to provide Body parameter in the Destination dashboard while configuring Mattermost, because of that i am getting error “400 Bad Request”. But when i pass the body using curl, response is success, i received msg in Mattermost.

Can someone pls advice me, how do i proceed further!? A Sample example is much appreciated :slight_smile:

Curl ex;
curl -i -X POST -H “Content-Type: application/json” -d “{“text”: “Hello, this is some text\nThis is more text”}” http://{your-mattermost-site}/hooks/xxx-generatedkey-xxx

How can i pass -d “” in Kibana alerting ?

#2

Hi @naveen_kumar

Could you provide information on how are you actually passing the body ?

Below are the steps you would need to set in-oder to setup custom webhook.

  1. You would need to setup custom Webhook in Destinations management page
  2. The body (-d) has to be set as part of the the action message.

let me know if you’re uanble to set it up.

#3

@mihirsoni thank you for your input. It worked :slight_smile:

1 Like