百度智能云

All Product Document

          Log Service

          Management alarm strategy

          Function overview

          Set up alarms for error logs, as well as system and application metrics, to proactively detect anomalies in systems and applications.

          Create Alarm Strategy

          Log in to Baidu AI Cloud, navigate to Log Service, and click -> in the left-hand menu to open the Alarm Strategy List page. Then, click "Create Alarm Strategy" to configure and set it up.

          Configure basic information

          In "Basic Information," please enter the alarm strategy name. In "Monitor Object", select the LogStore to be monitored. Supports two methods: sharing LogStores across execution statements or selecting LogStores individually for each execution statement. The former supports selecting multiple LogStores (up to 10), while the latter is single-choice

          image.png

          Configure alarm rules

          image.png

          • Execution statement: Enter log search and analysis statements, and support the addition of multiple entries, 3 at most; support pure search statements match ..., query statements select ..., and query statements with search conditions match ...| select ...
          • Query time range: The time range specified for filtering logs in the query, with a maximum limit of logs from one day.
          • Trigger conditions: Alarms will be triggered when set conditions are met. There are three levels of alerts: notification, warning, and severe. Alarms corresponding to the respective levels will be triggered when their conditions are satisfied. Multiple alarms will trigger if multiple conditions are met at the same time.

          • Group trigger: Enables group trigger functionality. When activated, if an execution statement results in multiple outcomes, these outcomes are grouped based on specified fields. Each group is assessed individually to determine whether it meets the alarm conditions; any group meeting the criteria will trigger an alarm independently.

            • Grouping field: Choose fields from the results of the execution statement to use as grouping criteria. At least one field must be selected.
            • When utilizing the group trigger function, a single alarm execution might generate a significant number of results that meet the trigger conditions, leading to numerous alarms (an alarm storm). Be sure to appropriately configure the group fields and trigger conditions.
          • Execution period: The frequency of monitoring task execution. The following two configuration methods are provided:

            • Fixed frequency: Execute a monitor task once at a fixed interval (1 min - 24 h)
            • Fixed time: Execute a monitor task once at a fixed time point. Time point range: 00:00 - 23:59
          • Alarm frequency: Trigger an alarm when the condition is met consecutively for a specified number of times
          • Repeated alarm: When an alarm is generated, support defining specific frequency and count for repeated notifications.
          • Recovery alarm notification: Support triggering recovery alarm notification when the alarm is recovered

          Configure alarm notification

          1. Alarm notification: You can select alarm notification template or directly configure an alarm callback Webhook.
          • Alarm notification template: BLS currently obtains BCM alarm notification template list. On the BLS side, you may select a notification template. To create a new one, click the "Go to BCM to Create Template" button to redirect to the BCM alarm notification template module. For editing, you should also select the corresponding template in the BCM alarm notification template module for editing. For specific configurations, refer to Alarm Notification Template

            image.png

          • Alarm callback Webhook: Configure the alarm callback address. For specific configurations, refer to Alarm Callback.

            image.png

          1. Alarm notification displays the original log content

          You can configure to display original log content when sending alarm notifications. The specific configuration items are as follows:

          image.png

          • Search statement: The execution statement can be either associated directly, or configured through custom selection of logstore
          • Display fields: Support configuration of displaying all fields or specified fields. For specified fields, you can directly select available fields or input additional fields.

            • Available fields: Retrieve the fields from the latest 5 logs and all configured index fields (parent-child hierarchical index fields will be displayed in available fields while dynamic index child-level fields will not be displayed).
            • Input fields: Allow custom input of fields, including parent-child hierarchical fields.

            image.png

          • Number of logs: Support configuring the number of logs displayed.
          • Display effect: Show the original log content in email and webhook.
          Screenshot
          email image.png
          Webhook image.png

          Enable/disable alarm notification

          1. Log in to Baidu AI Cloud, navigate to Baidu Log Service (BLS), and access the Alarm Strategy List page by clicking Alarm Management and Alarm Strategy in the left-hand menu.
          2. In the Notification Status column, ON means alarm notifications are active, while OFF means they are inactive.

          image.png

          Notes: Disabling alarm notifications means you will not receive email or SMS alerts related to the alarm strategy. However, the BLS platform will still log alarms during this period. Check the Alarm History for more details.

          Copy, edit, delete, enable or disable alarm strategy

          1. Log in to Baidu AI Cloud, navigate to Baidu Log Service (BLS), and access the Alarm Strategy List page by clicking Alarm Management and Alarm Strategy in the left-hand menu.
          2. Use the Copy, Edit, Delete, Enable, or Disable options in the operations column to manage individual alarm strategies. By selecting the checkbox next to a strategy, you can perform batch actions like deleting, enabling, or disabling alarm rules.

          image.png

          View Alarm Strategy details

          1. Log in to Baidu AI Cloud, navigate to Baidu Log Service (BLS), and access the Alarm Strategy List page by clicking Alarm Management and Alarm Strategy in the left-hand menu.
          2. Click the Alarm Strategy name to view detailed information about the current alarm strategy.

          image.png

          Notes: To simplify strategy management, the alarm strategy details page includes Copy, Edit, Delete, and Enable/Disable buttons, allowing you to perform these actions while viewing the strategy details.

          Previous
          Alert Overview
          Next
          Trigger conditions