Create a Template for Slack
To send an HTTP request action to Slack, you must create a template in Splunk AppDynamics. When Splunk AppDynamics triggers an action in response to an event, you can view the details of the action in your Slack channel.
Before you Begin
- Create an app in Slack by using the Slack API wizard. This app accepts the HTTP requests sent to Slack.
- Copy the webhook URL generated by the Slack app and keep it securely for later use. Splunk AppDynamics uses this URL as a target to send alerts to Slack.
Create a Template
- In the menu bar, click Alert & Respond.
- Click HTTP Request Templates.
- Enter a name for the template. For example, Send alerts to Slack .
- In the Request URL section:
- Select POST as Method.
- Enter the webhook URL of the Slack app in the Raw URL field.
- Select UTF-8 as URL Encoding.
- In the Authentication section, select NONE as Type. If you want to enable mutual TLS authentication, select Also Turn on Mutual TLS. For more information about mutual TLS, see Configure and Enable Mutual TLS Authentication.
- In the Payload section:
- In the Settings section, select the One Request Per Event option.
- Click Save.