Testing Kibana Alerting slack connector

Hi! I setup a slack connector to use as the action for several alerts that I created in Kibana. It was working well for a while, but suddenly stopped sending alert notifications to slack recently. I double-checked with curl to confirm that slack webhook is still working. Is there any other way for me to test the slack connector in Kibana to troubleshoot the issue?

I also noticed that the "Webhook URL" field always shows as blank in the "Edit connector" flyout, even after I set the webhook url and hit "Save" - is this by design?

I'm running elasticsearch/kibana 7.9.1 on elastic cloud.

Thanks!

Hi @stevewritescode,

There is an API you can curl that will give you the execution result / error. The information on the API can be found here: https://github.com/elastic/kibana/blob/master/x-pack/plugins/actions/README.md#post-apiactionsactionid_execute-execute-action.

You can use the get actions API to find the id of the connector: https://github.com/elastic/kibana/blob/master/x-pack/plugins/actions/README.md#get-apiactions-get-all-actions.

I also noticed that the "Webhook URL" field always shows as blank in the "Edit connector" flyout, even after I set the webhook url and hit "Save" - is this by design?

This is by design as the APIs don't expose encrypted values, the user has to re-enter them on edit. We're working on improving this UX.

Thanks a lot! I was able to use those API calls to test out the actions much easier. Also, thanks for the clarification about the UI. Now I know that it's working as intended and not an error on my part.

For some unknown reasons, the slack alerts started working again from both my direct API calls and the configured alerts. So I don't know what caused the original issue, but I'm all set to troubleshoot more next time it comes around. Thanks!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.