All Products
Search
Document Center

Short Message Service:Enable or disable log analysis

Last Updated:Mar 21, 2025

Simple Log Service provides one-stop services for querying, analyzing, processing, and consuming logs, helping you focus on analysis while freeing you from the tedious tasks of querying and organizing data. This topic explains how to enable or disable the log analysis feature developed by Simple Log Service in Alibaba Cloud SMS.

Usage notes

Enable log analysis

  1. Log on to the SMS console.

  2. In the left-side navigation pane, choose Analytics > Messaging Log Analysis.

  3. On the Messaging Log Analysis page, click Authorize.

  4. Click OK and follow the instructions to grant Alibaba Cloud SMS to access Simple Log Service using the AliyunServiceRoleForDysmsLog role.

    Important
    • This 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.

  5. You can view data in Log Operations Center, Business Statistics Center, and O&M Center.

Disable log analysis

If you no longer need the log analysis service, delete the relevant roles in the Resource Access Management console and remove the SMS project from the project list.

  1. Navigate to Projects and delete the SMS project. In this example, sms-log-168078171236**** is deleted.image

  2. Go to the RAM role list and delete the AliyunServiceRoleForDysmsLog and AliyunServiceRoleForSLSAudit roles.

image

Then, the log analysis feature will be disabled the following day.

Important

Log Analysis will be disabled the following day, and charges will apply on that day. No charges will apply thereafter.

Advanced management

You can use the advanced management features to navigate to the Simple Log Service console for performing advanced operations such as setting up alerts and notifications, real-time subscription and consumption, data delivery, and integrating with visualization services.

  1. Log on to the SMS console.

  2. In the left-side navigation pane, choose Analytics > Messaging Log Analysis.

  3. Click Set Log Retention Period in the upper-right corner.

  4. In the dialog box that appears, click Simple Log Service Console.

    image

  5. Perform the following advanced management operations on the SMS project and Logstore:

What to do next

  • Once Simple Log Service has collected SMS logs, you can query, download, deliver, process them, and set up alerts. For more information, see Common operations on logs of Alibaba Cloud services.

  • Log export is supported. You can export logs on the current page in the CSV format or all logs in the TXT format. For more information, see Export logs.