Create a webhook

Updated at:

Configure webhook notification channels for use in alert action policies. Simple Log Service supports DingTalk, WeCom, Lark, Slack, and universal webhooks.

Procedure

  1. Log on to the Simple Log Service console.

  2. Go to the Webhook Integration tab.

    1. In the Projects section, click a project.

    2. In the left-side navigation pane, click Alerts.

    3. On the Alert Center page, choose Notification Objects > Webhook Integration.

  3. Create a webhook.

    1. On the Webhook Integration page, click Create.

    2. 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.

      Configure the webhook for your selected type to obtain the URL.

      Signing Key

      The webhook signing key.

      Required when Type is DingTalk or Lark and signature verification is enabled.

      Headers

      Custom headers for the webhook request.

      Required when Type is Universal Webhook.

Webhook security settings

DingTalk and Lark bots provide security options to reduce the risk of 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.88 and 119.23.150.175 to the DingTalk or Lark whitelist.

What to do next

Add this webhook to an action policy to send alert notifications. Create an action policy.