> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashduty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Volcengine Log Service (TLS) Alert Events

> Sync Volcengine Log Service (TLS) alert events to Flashduty via webhook for automated alert noise reduction

Sync Volcengine Log Service (TLS) alert events to Flashduty via webhook for automated alert noise reduction.

<div class="hide">
  ## In Flashduty

  ***

  You can obtain an integration push URL through either of these two methods:

  ### Using Private Integration

  Choose this method when you don't need to route alert events to different channels - it's simpler.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Channel**, and enter a channel's details page
    2. Select the **Integrations** tab, click **Add Integration** to enter the integration page
    3. Choose **Volcengine TLS** integration and click **Save** to generate a card
    4. Click the generated card to view the **Push URL**, copy it for later use, and you're done
  </details>

  ### Using Shared Integration

  Choose this method when you need to route alerts to different channels based on the alert event payload.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page
    2. Select **Volcengine TLS** integration:
       * **Integration Name**: Define a name for this integration
    3. Configure the default route and select the corresponding channel (after the integration is created, you can go to `Route` to configure more routing rules)
    4. Click **Save** and copy the newly generated **push URL** for later use
    5. Done
  </details>
</div>

## In Volcengine

***

<div class="md-block">
  ## I. Volcengine Log Service (TLS) Alert Push Configuration

  ### Step 1: Create Flashduty Alert Channel

  1. Log in to your Volcengine console, search for `TLS` Log Service product, and enter the corresponding product console
  2. Select `Alert=>Notification Management` from the left navigation bar
  3. Choose `Webhook Alert Integration` and click `Create Webhook Alert Integration`

  <img src="https://download.flashcat.cloud/flashduty/doc/en/volcengine/tls-1.png" alt="drawing" width="500" />

  4. Fill in the information in the pop-up editor, enter `Flashduty` as the name
  5. Select `Custom Webhook` as type and `POST` as request method
  6. Enter the **Integration Push URL** as the request URL (generated after saving the integration name on the current page)
  7. Keep the request headers as default and click `Create`

  <img src="https://download.flashcat.cloud/flashduty/doc/en/volcengine/tls-2.png" alt="drawing" width="500" />

  ### Step 2: Create Content Template

  1. Return to the `Notification Management` page
  2. Select `Content Templates` and click `Create Content Template`
  3. Fill in the relevant information, enter `Flashduty` as the template name
  4. Other channel content can be empty. In the `Custom Webhook` notification content, enter the following template:

  ```
  {
  	"AccountID":"{{AccountID}}",
  	"ProjectName":"{{ProjectName}}",
  	"AlarmTopicName":"{{AlarmTopicName}}",
  	"Region":"{{Region}}",
  	"Alarm":"{{Alarm}}",
  	"AlarmID":"{{AlarmID}}",
  	"Duration":"{{Duration}}",
  	"Condition":"{{Condition}}",
  	"HappenThreshold":"{{HappenThreshold}}",
  	"Topics":"{{Topics|join:','}}", 
  	"NotifyTimeUnix":"{{NotifyTimeUnix}}",
  	"NotifyType":"{{NotifyType}}",
  	"Severity":"{{Severity}}",
  	"ConsecutiveAlertNums":"{{ConsecutiveAlertNums}}",
  	"TriggerParams":{{toJson(TriggerParams)|safe}}, 
  	"ExecuteQuery":{{toJson(ExecuteQuery)|safe}},
  	"DetailUrl":"{{DetailUrl}}",
  	"FireResultsCount":"{{FireResultsCount}}"
  }
  ```

  5. Click `Confirm` to complete the content template creation

  <img src="https://download.flashcat.cloud/flashduty/doc/en/volcengine/tls-3.png" alt="drawing" width="500" />

  ### Step 3: Create Notification Group

  1. Return to the `Notification Management` page
  2. Select `Notification Groups` and click `Create Notification Group`
  3. Fill in the relevant information, enter `Flashduty` as the group name
  4. Configure notification rules and other settings as needed (skipped here)
  5. In notification channel configuration, keep `Custom Webhook` checked
  6. Select the **Flashduty** channel created in **Step 1** for `Webhook`
  7. Select the **Flashduty** template created in **Step 2** for `Content Template`
  8. Click `Save` after completing other configurations

  <img src="https://download.flashcat.cloud/flashduty/doc/en/volcengine/tls-4.png" alt="drawing" width="500" />

  ### Step 4: Configure Alert Policy

  1. Select `Alert=>Alert Policies` from the left navigation bar
  2. Create a new or edit an existing alert policy
  3. Configure alert rules as needed (skipped here)
  4. Click `Associate Notification Group` in the `Notification Group` section
  5. In the pop-up selection box, choose the **Flashduty** notification group created in **Step 3**, then click `Associate`
  6. Click `Create/Save` after configuring other settings

  <img src="https://download.flashcat.cloud/flashduty/doc/en/volcengine/tls-5.png" alt="drawing" width="500" />

  ## II. Status Mapping

  <div class="md-block">
    | TLS      | Flashduty | Status   |
    | -------- | --------- | -------- |
    | Critical | Critical  | Critical |
    | Warning  | Warning   | Warning  |
    | Info     | Info      | Info     |
  </div>
</div>
