This topic explains how to enable log analysis in the Short Message Service console and push logs to Simple Log Service.
Prerequisites
Short Message Service and Simple Log Service are activated.
Enable log analysis
Log on to the SMS console.
In the left-side navigation pane, choose .
On the Messaging Log Analysis page, click Authorize.
Click OK and follow the instructions to grant Alibaba Cloud SMS to access Simple Log Service using the AliyunServiceRoleForDysmsLog role.
ImportantThis operation is required only during the initial configuration and must be performed by an Alibaba Cloud account.
If you are a RAM user, ensure that you have the required permissions. For more information, see Authorize RAM users to enable log analysis.
Do not revoke the authorization or delete the RAM role. Otherwise, fraud detection logs cannot be pushed to Simple Log Service.
Once the log analysis feature is enabled, the system automatically generates a project called sms-log-Alibaba Cloud account ID along with a Logstore named sms-log.
After the authorization is successful, the log analysis feature is enabled.
You can view data in Log Operations Center, Business Statistics Center, and O&M Center.
Additional actions
After Simple Log Service collects Short Message Service logs, perform common operations and advanced operations on the logs.
Export the query results of Short Message Service logs to your local machine.