All Products
Search
Document Center

Simple Log Service:Action policies

Last Updated:Jun 16, 2026

Action policies control how alert notifications are sent. You can dynamically route notifications to specific users, user groups, or on-duty groups through designated channels, and configure escalation for unresolved alerts.

Create an action policy

  1. Log on to the Simple Log Service console.

  2. Go to the Action Policy 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 Management > Action Policy.

  3. On the Action policy tab, click Create.

  4. In the Add action policy dialog box, configure the ID and Name parameters.

    Parameter

    Description

    ID

    The ID of the action policy. The ID must be unique within your Alibaba Cloud account.

    Name

    The name of the action policy.

  5. Configure the primary action policy.

    1. On the Primary action policy tab, click the 条件 icon.

    2. Configure the conditions that trigger alert notifications.

      Parameter

      Description

      Condition

      • All: Executes the action group only when all alerts in an alert set meet all specified conditions.

      • Any: Executes the action group if any alert in an alert set meets all specified conditions.

      Conditional expression

      The criteria for routing alerts. A conditional expression consists of an object, an operator, and a value. When an alert matches the expression, the corresponding action group runs. For example, an Alibaba Cloud account is Equal to 174****2745.

      Mode

      You can add multiple conditions in standard mode or advanced mode.

      • Standard mode: Joins multiple conditions with a logical AND.

      • Advanced mode: Joins multiple conditions with logical AND or OR operators. You can use parentheses () to group conditions and create nested logic.

    3. Configure an action group.

      Configure the notification channel and its parameters. For more information, see Notification channels.

      Note

      If you select EventBridge or Function Compute (FC) as the notification channel, complete the authorization process as prompted. This is a one-time operation. Alibaba Cloud automatically creates a service-linked role named AliyunServiceRoleForSLSAlert that grants Simple Log Service the permissions to access EventBridge and Function Compute.

    4. Click the 结束 icon on a condition or action group node to complete the primary action policy configuration.

      To add more conditions or action groups, click the 条件 icon.

  6. Click Confirm.

Delete a node

Hover over the target node, right-click, and then click Delete Node.

Add a node

Note

If you have already added an End node, you must delete the End node before you can add another condition or action group node.

  • Click the 条件 icon to add a condition node.

  • Click the 行动策略 icon to add an action group node.

  • Click the 结束 icon to add an End node.

In the condition configuration panel, set the match criteria to Any, select Rule Name as the object, select Equal to as the operator, and for the value, enter a specific rule name, such as Delete Node Failed. Then, in the action configuration area at the bottom of the workflow, add the required actions, such as notifications and contacts. Click Confirm to save the condition configuration. You can also click advanced mode to switch to the advanced editor.

Related documentation