tencent cloud

Cloud Log Service

문서Cloud Log ServicePractical TutorialMonitoring AlarmSend Alarms to Different Teams Based on the Service to which the Log Belongs

Send Alarms to Different Teams Based on the Service to which the Log Belongs

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-05-26 19:09:38

Overview

Access logs contain logs from multiple services. When alarms are triggered, alarms need to be routed to respective teams based on the service. For example, in the following logs, an alarm should be sent to the owning team when more than 5 error logs appear for any service.







Configuration Steps

Step 1: Configure alarm policy, fill in the following configuration:

1. Query statement and trigger condition: Use SQL to count the number of error log entries for each service respectively, and filter out services with error log entries >=5.



2. Enable grouped triggering: Group alarms by service and send them separately for each service.



3. Add multi-dimensional analysis: When an alarm is triggered, view the log details (msg) of that service. Where {{index .ConditionGroup "$1.service"}} represents the service corresponding to this alarm.



4. Add alarm classification: where {{index .ConditionGroup "$1.service"}} represents the service corresponding to this alarm.



5. Add customized alarm notification content: Display the service name that triggered the alarm and the corresponding number of error log entries in the alarm notification.



Use the following notification rule to route alarms to respective teams based on service.




Step 3: Receive alarm notifications







도움말 및 지원

문제 해결에 도움이 되었나요?

피드백