Building a Program
You can download and use the alarm log analysis program package provided in this example.
Creating a Function
This function analyzes received operation records, filters logins or logouts from unauthorized IP addresses using a whitelist, and sends alarms under a specified SMN topic. This function can be used to build an account security monitoring service.
Setting Environment Variables
On the Configuration tab page of the function details page, set the environment variables listed in Table 1.
|
Environment Variable |
Description |
|---|---|
|
SMN_Topic |
SMN topic. |
|
RegionName |
Region name. |
|
IP |
IP address whitelist. |
Last Article: Preparation
Next Article: Adding an Event Source


Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.