This topic describes how to use a webhook to sync Simple Log Service (SLS) alert events to FlashDuty for automated alert processing.
Background information
FlashDuty is an enterprise-level, unified incident response platform that receives alert events from various sources. It provides unified management, collaboration, analysis, and automated processing for these events to help improve incident response efficiency and reduce losses from failures.

Step 1: Set up FlashDuty
Log on to the FlashDuty console.
In the navigation pane, click Collaboration Space.
In the collaboration space list, click the target collaboration space.
You can also create a new collaboration space to integrate SLS alerts.
On the Alert Integration tab, click Add an Integration.
In the Add Integration panel, click Alibaba Cloud SLS, and then click Save.
In the Dedicated Integration area, click the target integration.
In the Dedicated Integration Details panel, copy the API URL.
Use this URL when you create the webhook in SLS.
Step 2: Set up Simple Log Service
Configure a webhook
Log on to the Simple Log Service console.
Go to the Webhook Integration tab.
In the Projects section, click a project.
In the left-side navigation pane, click Alerts.
On the Alert Center page, choose .
Create a webhook.
In the Create Webhook dialog box, configure the following parameters and click Confirm.
Parameter
Description
Identifier
A unique identifier for the webhook. It cannot be the same as another identifier.
Name
The name of the webhook.
Type
The webhook type. Select General Webhook.
Request Method
The request method to call the webhook. Select POST.
Request URL
The webhook URL. Enter the URL that you generated in FlashDuty.
Configure a content template
On the Alert Center page, choose Notification Policy > Content Template.
On the Content Template tab, click Add.
In the Add Content Template dialog box, select WebHook-Custom, configure the following parameters, and then click Confirm.
Parameter
Description
ID
The content template ID. Set it to
sls.flashduty.Name
The content template name. Set it to
FlashDuty.Sending Method
Select Send One by One.
Content to Send
Set it to
{{ alert | to_json}}.
Configure an action policy
On the Alert Center page, choose Notification Policy > Action Policy.
On the Action Policy tab, click Create.
In the Add Action Policy dialog box, configure the following parameters.
Set the ID and name.
Select the primary action list.
Click the
icon to add an action group.Set up the action group.
Parameter
Description
Channel
Select General Webhook.
Select Webhook
Select the webhook that you created.
Content Template
Select the content template that you created.
Sending Period
Select Any.
Click the
icon to complete the configuration.Click Confirm.
Configure an alert monitoring rule
On the Alert Center page, click Alert Rules.
On the Alert Rules tab, find the target alert monitoring rule and click Edit.
You can also click Create Alert. This topic uses an existing alert monitoring rule as an example.
In the Alert Monitoring Rule panel, make the following changes.
Set Alert Policy to Normal Alert.
Set Action Policy to the action policy that you created in the previous step.
Click OK.
Step 3: Verify the integration
When an SLS alert is triggered, you can view and process it in FlashDuty. FlashDuty can merge similar events into a single alert. It can also extract information from the SLS alert and display it in the Labels area.