Manage webhook notification channels on the Webhook Integration page and use them in action policies. Simple Log Service supports DingTalk, WeCom, Lark, Slack, and universal webhooks.
Procedure
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.
-
On the Webhook Integration page, click Create.
-
In the Create Webhook dialog box, configure the following parameters and click Confirm.
Parameter
Description
ID
The webhook ID. Must be unique within your Alibaba Cloud account.
Name
The webhook name.
Type
The webhook type. Valid values:
-
DingTalk
-
WeCom
-
Lark
-
Slack
-
Universal Webhook
Request Method
Required only when Type is Universal Webhook. Other types default to POST.
Request URL
The webhook URL.
Complete the webhook configuration for your selected type to obtain the URL.
-
DingTalk
Create a custom chatbot on DingTalk to obtain the webhook URL.
-
WeCom
Create a custom chatbot on WeCom to obtain the webhook URL.
-
Lark
Create a custom bot on Lark to obtain the webhook URL. Use bots in groups.
-
Slack
Create a webhook on Slack to obtain the webhook URL. Sending messages using Incoming Webhooks.
Signing Key
The webhook signing key.
Required when Type is DingTalk or Lark and signature verification is enabled.
-
DingTalk: Configure signing in the DingTalk custom chatbot settings to obtain a signing key.
-
Lark: Configure signing in the Lark custom bot settings to obtain a signing key.
Headers
Custom headers for the webhook request.
Required when Type is Universal Webhook.
-
-
Webhook security settings
DingTalk and Lark bots provide the following security options to mitigate risks from webhook URL leaks.
-
Custom keyword
Set up to 10 keywords. Notifications are sent only when content includes at least one keyword. Set one keyword to Alert in DingTalk or Lark.
-
Signature
Validates request sources by signature. Generate a signing key in DingTalk or Lark, then add it to the SLS webhook settings.
-
IP address (CIDR block)
Configure up to 10 IP addresses or CIDR blocks. Only requests from these addresses are processed. Add
120.76.47.88and119.23.150.175to the DingTalk or Lark whitelist.
What to do next
Add this webhook to an action policy to send alert notifications. Create an action policy.