You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Alarm notification content template
Create content template
Copy page
Download PDF
Create content template
TLS sends alarm notifications to designated notification channels based on the content defined in the content template. This topic describes how to create a content template.​
Background information​
An alarm notification content template is a predefined text template that specifies the content and format of alarm notifications. The content template supports adding variables, functions, and text. When sending alarm notifications, TLS automatically replaces variables in the notification content with the corresponding actual values. For detailed lists of content variables, see Content variable.​
TLS provides a default content template (default-template) that can not be modified or deleted. You can create custom content templates based on the default template.​
Notice​
You can define the complete alarm notification content directly in the content template and leave the notification content in the alarm policy blank. For notifications triggered by alarm triggering, you can also configure a general alarm notification structure in the content template and reference the alarm policy's notification content by using the variable {{NotifyMsg}}.​
Steps​
  1. Log in to TLS console.​
  1. Select the region where log service is located from the top navigation bar.​
  1. On the left navigation bar, select Common features > Log alarm > Notification management.​
  1. Under the Alarm template tab, click Create alarm template.​
  1. Configure the content template settings.​
  1. Set the template name.​
  1. Set content templates for each notification channel.​
  • Email​
  • ​
    Configuration​
    Description​
    Fixed content language​
    The language for fixed content in alarm notifications. Options include Chinese and English.​
    • English​
    • ​
      Dear Customer: Your account has an alarm ( Account ID:${AccountID}, User name :${AccountName}).​
      ​
    Subject​
    Email subject​
    Content​
    The alarm notification content supports plain text format, and you can insert variables or functions. For detailed instructions, see Content variable and Content functions.​
    • Click AI generate content, enter the notification content you want to display as prompted, and click AI generate. TLS Agent will automatically analyze your input, and you can fill in the related configuration with one click after analysis is complete. The recommended result is for reference only; you need to verify based on your actual needs.​
    • Click Fill with default content to use the built-in notification content. For specific information, see Email.​
    Notice​
    • The notification content after variable rendering can be up to 8 KB. Content exceeding this limit will be truncated.​
    • Main content left blank uses the default content.​
    • AI-generated content is only supported in North China 2 (Beijing), South China 1 (Guangzhou), and East China 2 (Shanghai).​
    ​
  • SMS​
  • ​
    Configuration​
    Description​
    Fixed content language​
    The language for fixed content in alarm notifications. Options include Chinese and English.​
    • English​
    • ​
      TLS Alarm: Your account has an alarm ( Account ID:${AccountID}, User name :${AccountName}).​
      ​
    Content​
    The alarm notification content supports plain text format, and you can insert variables or functions. For detailed instructions, see Content variable and Content functions.​
    • Click AI generate content, enter the notification content you want to display as prompted, and click AI generate. TLS Agent will automatically analyze your input, and you can fill in the related configuration with one click after analysis is complete. The recommended result is for reference only; you need to verify based on your actual needs.​
    • Click Fill with default content to use the built-in notification content. For details, see SMS.​
    Notice​
    • We recommend keeping the notification content after variable rendering within 256 characters. Content that exceeds this limit may be truncated.​
    • Main content left blank uses the default content.​
    • AI-generated content is only supported in North China 2 (Beijing), South China 1 (Guangzhou), and East China 2 (Shanghai).​
    ​
  • Phone call​
  • ​
    Configuration​
    Description​
    Fixed content language​
    The language for fixed content in alarm notifications. Options include Chinese and English.​
    • English​
    • ​
      TLS Alarm: Your account has an alarm ( Account ID:${AccountID}, User name :${AccountName}). Please log in to TLS console to view details.​
      ​
    Content​
    The alarm notification content supports plain text format, and you can insert variables or functions. For detailed instructions, see Content variable and Content functions.​
    • Click AI generate content, enter the notification content you want to display as prompted, and click AI generate. TLS Agentill automatically analyze your input, and you can fill in the related configuration with one click after analysis is complete. The recommended result is for reference only; you need to verify based on your actual needs.​
    • Click Fill with default content to use the built-in notification content. For details, see Phone call.​
    Notice​
    • We recommend keeping the notification content after variable rendering within 256 characters. Content that exceeds this limit may be truncated.​
    • Main content left blank uses the default content.​
    • AI-generated content is only supported in North China 2 (Beijing), South China 1 (Guangzhou), and East China 2 (Shanghai).​
    ​
  • Lark​
  • ​
    Configuration​
    Description​
    Title​
    The subject of the alarm notification.​
    Content​
    Alarm notification content supports Markdown format. You can insert content variables and functions and so on. For detailed instructions, see Content variable and Content functions.​
    • Click AI generate content, enter the notification content you want to display as prompted, and click AI generate. TLS Agentill automatically analyze your input, and you can fill in the related configuration with one click after analysis is complete. The recommended result is for reference only; you need to verify based on your actual needs.​
    • Click Fill with default content to use the built-in notification content. For the supported content syntax in Lark, please refer to Lark Rich Text. For Lark alert template content, refer to Lark, DingTalk, WeCom.​
    Notice​
    • The notification content after variable rendering can be up to 8 KB. Content exceeding this limit will be truncated.​
    • Main content left blank uses the default content.​
    • Due to Lark restrictions, if your notification content contains sensitive information such as plain text phone numbers or email addresses, alarm notifications sent through the Lark channel may fail. For more details, see error 230028.​
    • AI-generated content is only supported in North China 2 (Beijing), South China 1 (Guangzhou), and East China 2 (Shanghai).​
    ​
  • DingTalk​
  • ​
    Configuration​
    Description​
    Content​
    Alarm notification content supports Markdown format. You can insert content variables and functions and so on. For detailed instructions, see Content variable and Content functions.​
    • Click AI generate content, enter the notification content you want to display as prompted, and click AI generate. TLS Agent will automatically analyze your input, and you can fill in the related configuration with one click after analysis is complete. The recommended result is for reference only; you need to verify based on your actual needs.​
    • Click Fill with default content to use the built-in notification content. For specific content, see Lark, DingTalk, WeCom.​
    Notice​
    • The notification content after variable rendering can be up to 8 KB. Content exceeding this limit will be truncated.​
    • Main content left blank uses the default content.​
    • AI-generated content is only supported in North China 2 (Beijing), South China 1 (Guangzhou), and East China 2 (Shanghai).​
    ​
  • WeCom​
  • ​
    Configuration​
    Description​
    Content​
    Alarm notification content supports Markdown format. You can insert content variables and functions and so on. For detailed instructions, see Content variable and Content functions.​
    • Click AI generate content, enter the notification content you want to display as prompted, and click AI generate. TLS Agent will automatically analyze your input, and you can fill in the related configuration with one click after analysis is complete. The recommended result is for reference only; you need to verify based on your actual needs.​
    • Click Fill with default content to use the built-in notification content. For specific content, see Lark, DingTalk, WeCom.​
    Notice​
    • The maximum length for notification content after variable rendering is 4 KB. If it exceeds this limit, the content will be truncated.​
    • If body text is empty, the default content will be used.​
    • When you set the reminder method in the notification group to everyone or specified individuals, notifications sent to WeCom will be in plain text format, and Markdown format is not supported.​
    • AI-generated content is only supported in North China 2 (Beijing), South China 1 (Guangzhou), and East China 2 (Shanghai).​
    ​
  • Custom Webhook​
  • ​
    Configuration​
    Description​
    Content​
    Alarm notification content, usually in JSON format; supports content variables, content functions, and more. For detailed instructions, see Content variable and Content functions.​
    • Click AI generate content, enter the notification content you want to display as prompted, and click AI generate. TLS Agent will automatically analyze your input, and you can fill in the related configuration with one click after analysis is complete. The recommended result is for reference only; you need to verify based on your actual needs.​
    • Click Fill with default content to use the built-in notification content. For details, see Custom Webhook.​
    Notice​
    • The maximum length for notification content after variable rendering is 16 KB. If it exceeds this limit, the content will be truncated.​
    • Main content left blank uses the default content.​
    • AI-generated content is only supported in North China 2 (Beijing), South China 1 (Guangzhou), and East China 2 (Shanghai).​
    ​
  1. Click Reset.​
  • The system automatically validates the configured content variables and syntax. If an error message appears, modify the content based on the message.​
Default content​
TLS provides default notification content; you can set custom notification content based on the default.​
Email​
​
Alarm policy:{{Alarm}}<br> ​
Alarm log project:{{ProjectName}}<br> ​
Alarm log topic:{{AlarmTopicName}}<br> ​
Alarm level:{{Severity}}<br> ​
Triggering time:{{StartTime}}<br> ​
Triggering condition:{{Condition}}<br> ​
Notification type:{%if NotifyType==1%}trigger alarm{%else%}Alarm restore{%endif%}<br> ​
Alarm duration:{{Duration}}<br> ​
Additional notification:{{NotifyMsg}}<br>​
Log query details:[View details]({{QueryUrl|safe}})<br>​
Alarm details:[View details(Link expires after 12 hours)]({{SignInUrl|safe}})<br>​
​
SMS​
​
Alarm policy{{Alarm}}, Alarm project:{{ProjectName}}, Alarm topic:{{AlarmTopicName}}, Alarm severity level:{{Severity}}, Notification type:{%if NotifyType==1%}trigger alarm{%else%}Alarm restore{%endif%},First-alarm time:{{StartTime}}, Triggering condition:{{Condition}}, Current query result:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}],\nAdditional notification:{{NotifyMsg}}​
​
Phone call​
​
Notification type:{%if NotifyType==1%}Triggering alarm{%else%}Alarm restore{%endif%}​
​
Lark, DingTalk, WeCom​
​
Dear uers, hello!\nYour account (Main account ID{{AccountID}} )Torch Log Service{%if NotifyType==1%}trigger alarm{%else%}Alarm restore{%endif%}\nAlarm policy:{{Alarm}}\nAlarm topic:{{AlarmTopicName}}\nAlarm level:{{Severity}}\nFirst-alarm time:{{StartTime}}\nTriggering condition:{{Condition}}\nCurrent query result:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}]\nAdditional notification:{{NotifyMsg|escapejs}}\nlog query details: [view details]({{QueryUrl|safe}})\nAlarm details:[view details(The link expires after 12 hours)]({{SignInUrl|safe}})\n\nThanks for your support for Volcanoengine.​
​
Custom Webhook​
​
{​
"msg_type": "interactive",​
"card": {​
"config": {​
"wide_screen_mode": true​
},​
"elements": [​
{​
"content": "Dear uers, hello!\nYour account (Main account ID{{AccountID}} )Torch Log Service{%if NotifyType==1%}trigger alarm{%else%}Alarm restore{%endif%}\nAlarm policy:{{Alarm}}\nAlarm topic:{{AlarmTopicName}}\nAlarm level:{{Severity}}\nFirst-alarm time:{{StartTime}}\nTriggering condition:{{Condition}}\nCurrent query result:[{%-for x in TriggerParams-%}{{-x-}} {%-endfor-%}];\nAdditional notification:{{NotifyMsg|escapejs}}\n\nThanks for your support for Volcanoengine.",​
"tag": "markdown"​
}​
],​
"header": {​
"template": "{%if NotifyType==1%}red{%else%}green{%endif%}",​
"title": {​
"content": "【Volcanoengine】【log service】{%if NotifyType==1%}Triggering alarm{%else%}Alarm restore{%endif%}",​
"tag": "plain_text"​
}​
}​
}​
}​
​
Custom content format​
TLS supports customizing notification content. For content format details, see the following:​
Email​
Email notification content supports HTML tags. For more information, see HTML elements reference.​
​
Parameter​
Data format​
Line feed​
​
<br>​
​
Add link​
​
<a href="https://example.com">link</a>​
​
Bold​
​
<strong>Bold</strong>​
​
Italic​
​
<i>This can't be real!</i>​
​
​
Lark​
Notifications sent via Lark support Markdown syntax. The format of relevant elements is shown in the table below. For more information, see Lark rich text.​
​
Parameter​
Data format​
Line feed​
​
Line 1<br />Line 2​
Line 1<br>Line 2​
​
Italic​
​
*Italic*​
​
Bold​
​
**Bold**​
Or​
__Bold__​
​
Strikethrough​
​
~~Strikethrough~~​
​
Hyperlink​
​
<a href='https://open.feishu.cn'></a>​
​
@everyone​
​
<at id=all></at>​
​
@Mention​
​
<at id=user_id></at>​
​
For instructions on obtaining the user_id of the mentioned person, see How to implement @Mention.​
Colored text style​
​
<font color='green'>​
This is a green text​
</font>​
<font color='red'>​
This is a red text​
</font>​
<font color='grey'>​
This is a grey text​
</font>​
​
Text link​
​
[Open platform](https://open.feishu.cn/)​
​
Image​
​
![hover_text](image_key)​
​
Divider​
​
\n ---\n​
​
Ordered list​
​
1. Ordered List 1​
1. Ordered List 1.1​
2. Ordered List 2​
​
Unordered list​
​
- Unordered List 1​
- Unordered List 1.1​
- Unordered List 2​
​
Tags​
​
<text_tag color='red'>tag text</text_tag>​
​
​
DingTalk​
Notifications sent via DingTalk support Markdown syntax. The format of relevant elements is shown in the table below. For more information, see message types for custom bot messages.​
​
Parameter​
Data format​
Title​
​
# heading 1​
## heading 2​
### heading 3​
#### heading 4​
##### heading 5​
###### heading 6​
​
Quotation​
​
> A man who stands for nothing will fall for anything.​
​
Bold and italic text​
​
**bold**​
*italic*​
​
Link​
​
[this is a link](http://name.com)​
​
Image​
​
![](http://name.com/pic.jpg)​
​
Recommended maximum value: 20 images.​
Unordered list​
​
- item1​
- item2​
​
Ordered list​
​
1. item1​
2. item2​
​
​
WeCom​
Notifications sent via WeCom support Markdown syntax. The format of relevant elements is shown in the table below. For more information, see WeCom notification content Markdown syntax.​
​
Parameter​
Data format​
Title​
​
# heading 1​
## heading 2​
### heading 3​
#### heading 4​
##### heading 5​
###### heading 6​
​
Bold​
​
**bold**​
​
Link​
​
[This is a link](http://work.weixin.qq.com/api/doc)​
​
Inline code segment​
​
`code`​
​
Quotation​
​
> Quoted text​
​
Font color​
​
<font color="info">green</font>​
<font color="comment">grey</font>​
<font color="warning">orange</font>​
​
​
​
​
Last updated: 2026.06.01 15:36:05