All Products
Search
Document Center

Short Message Service:Enable or disable log analysis

Last Updated:Feb 12, 2026

Simple Log Service provides an end-to-end service for querying, analyzing, processing, and consuming logs. This lets you focus on analysis instead of the operational overhead of data management. This topic describes how to enable or disable the log analysis feature.

Before you begin

Enable log analysis

  1. Log on to the Alibaba Cloud Short Message Service Console.

  2. In the left navigation pane, choose .

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

  4. Click OK. Follow the on-screen instructions to grant Short Message Service the AliyunServiceRoleForDysmsLog role to access SLS.

    Important
    • This operation is required only during the initial configuration , and must be authorized by an Alibaba Cloud account.

    • If you use a Resource Access Management (RAM) user, that RAM user must have the required permissions. For more information, see RAM user authorization.

    • Do not revoke the authorization or delete the RAM role. Otherwise, Fraud Detection logs cannot be delivered to SLS.

    • After enabling log analysis for Short Message Service, the system automatically creates a project named sms-log-{AlibabaCloudAccountID} and a dedicated logstore named sms-log.

    Log analysis is enabled after the authorization succeeds.

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

Disable log analysis

To disable log analysis, delete the associated RAM roles and the SLS project.

  1. Go to the Projects page in the SLS console and delete the sms-log-168078171236**** project.image

  2. Go to the Roles page in the RAM console and delete the AliyunServiceRoleForDysmsLog and AliyunServiceRoleForSLSAudit roles.

image

After deleting these resources, log analysis is disabled the next day.

Important

The change takes effect the next day. You are billed for the full day on which you disable the feature, along with the following day. No charges apply after that.

Advanced management

Use advanced management to open the Simple Log Service (SLS) console. There, you can configure alerts and notifications, set up real-time data subscription and consumption, manage data shipping, and integrate with data visualization services.

  1. Log on to the Alibaba Cloud Short Message Service Console.

  2. In the left navigation pane, choose .

  3. In the upper-right corner, click Set Log Retention Period.

  4. In the dialog box, click Simple Log Service Console to open the SLS console.

    image

  5. You can perform the following advanced management operations on the dedicated project and logstore for Short Message Service:

What to do next

  • After SLS collects your SMS logs, you can query, download, ship, process, and create alerts. For more information, see Common operations on logs of Alibaba Cloud services.

  • You can export SMS log query results to your local computer. You can download logs on the current page in CSV format or all logs in TXT format. For more information, see Export logs.