This topic provides answers to some commonly asked questions (FAQ) about alerts in the Simple Log Service console.
How do I add raw log entries to an alert notification?
For example, assume that more than five error log entries have been detected in the past 5 minutes and an alert has been triggered. To add the raw log entries to the alert notification, perform the following steps:
In the Projects list, click the destination project.
In the left-side navigation pane, click the icon.
In the dashboard list, click the destination dashboard.
In the upper-right corner of the dashboard page, choose
.In the Create Alert dialog box, set the parameters, as shown in the following figure.
The following example shows how to set the parameters.
Query
Number 0:
level: ERROR
Number 1:
level: ERROR | select COUNT(*) as count
Trigger Condition:
$1.count > 5
Content:
${results[0].rawresults}
Click Submit.
What can I do if the DingTalk chatbot fails to send a notification?
For example, after you set the notification method to WebHook-DingTalk Bot, the following error message is returned when the DingTalk chatbot sends a notification:
{"errcode":310000,"errmsg":"sign not match"}
{"errcode":310000,"errmsg":"keywords not in content"}
This error message returned because the security settings of the latest chatbot are invalid. You can reset the security settings. For more information, see Notification methods. If the problem persists or other error messages are returned, submit a ticket.