01 Sign in to your Alibaba Cloud account.
02 Navigate to Simple Log Service (SLS) console available at https://sls.console.aliyun.com/.
03 In the Log Application section, select the Audit & Security tab, and choose Log Audit Service.
04 In the left navigation panel, under Access to Cloud Products, choose Global Configurations.
05 Select the cloud region of the SLS central project from the Region of the Central Project dropdown list. If the Region of the Central Project is already configured, continue the Audit process with the next step.
06 Ensure that Operations Log is enabled for ActionTrail, and click on the name (link) of the SLS central project, listed next to Central Project. If the name of the central project is not a link (the name is not clickable), there is no SLS central project created for managing log resources, available in the selected region. If the name of the central project is a link, click on the link to access your SLS central project.
07 Choose Alerts (bell icon) from the left navigation panel and select the Alert rule tab to access your alert monitoring rules.
08 Select actiontrail_log from the Search Logstore dropdown list to return only the monitoring rules associated with the actiontrail_log logstore.
09 Choose the active alert monitoring rule that you want examine, and select Edit. A monitoring rule is active when the Status of the rule is Running. If there are no alert monitoring rules listed on this page, there is no SLS alert configured to detect unauthorized API calls, otherwise, continue with the next step.
10 On the Edit Alert configuration panel, click on the query statement next to Query Statistics, and ensure that the following SQL query is present in the Query box: event.eventType: ApiCall and (event.errorCode: NoPermission or event.errorCode: NoPermission. or event.errorCode: Forbidden or event.errorCode: Forbbiden or event.errorCode: Forbidden. or event.errorCode: InvalidAccessKeyId or event.errorCode: InvalidAccessKeyId.or event.errorCode: InvalidSecurityToken or event.errorCode: InvalidSecurityToken. or event.errorCode: SignatureDoesNotMatch or event.errorCode: InvalidAuthorization or event.errorCode: AccessForbidden or event.errorCode: NotAuthorized) | select "event.userIdentity.accountId" as account_id, "event.serviceName" as service_name, "event.sourceIpAddress" as source_ip,count(1) as cnt group by account_id, service_name,source_ip order by cnt desc limit 1000. If the specified SQL query is not available in the Query box, the selected alert monitoring rule is not configured to detect unauthorized API calls. If the specified SQL query is present, return to the Edit Alert panel, choose Simple Log Service Notification for Destination, and ensure that the feature is enabled and has an alert policy configured to send notifications. If the Simple Log Service Notification feature is not enabled and properly configured, the selected SLS alert is not configured to send notifications whenever an unauthorized API call occurs.
11 Repeat steps no. 9 and 10 for each alert monitoring rule available in your Alibaba Cloud account.