All Products
Search
Document Center

Simple Log Service:Manage service logs

Last Updated:Jun 03, 2026

The service log feature collects resource operation logs, job execution logs, consumer group latency logs within a logstore, and Logtail diagnostics for a project.

Background

When you enable the service log feature, select the log types to collect: detailed log, important log, and job log. Each type and its fields are described in Service log types.

  • Detailed log: Creates a logstore named internal-operation_log in the selected project and a dashboard in the current project.

  • Important log: Collects key diagnostics (consumer group latency, Logtail heartbeat) and stores them in a logstore named internal-diagnostic_log in the selected project.

  • Job log: Collects execution logs for data import, scheduled SQL, and data shipping jobs, stored in a logstore named internal-diagnostic_log in the selected project.

Billing

  • Detailed log: Billed the same as a standard logstore. Pay-by-feature billing items.

  • Important log: Ingestion, storage, and query and analysis are free. Operations such as data transformation and data shipping are billed on a pay-as-you-go basis.

  • Job log: Ingestion, storage, and query and analysis are free. Operations such as data transformation and data shipping are billed on a pay-as-you-go basis.

Prerequisites

  • You have created a project. Manage a Project.

  • If you use a RAM user, ensure the required permissions are granted by the Alibaba Cloud account. Create a RAM user and grant permissions to the RAM user. Sample policy:

    Sample custom policy

    {
      "Version": "1",
      "Statement": [
        {
          "Action": [
            "log:CreateDashboard",
            "log:UpdateDashboard",
            "log:GetDashboard"
          ],
          "Resource": "acs:log:*:*:project/{project-that-stores-logs}/dashboard/*",
          "Effect": "Allow"
        },
        {
          "Action": [
            "log:GetProject",
            "log:CreateProject",
            "log:ListProject"
          ],
          "Resource": "acs:log:*:*:project/*",
          "Effect": "Allow"
        },
        {
          "Action": [
            "log:List*",
            "log:Create*",
            "log:Get*",
            "log:Update*"
          ],
          "Resource": "acs:log:*:*:project/{project-that-stores-logs}/logstore/*",
          "Effect": "Allow"
        },
        {
          "Action": [
            "log:*"
          ],
          "Resource": "acs:log:*:*:project/{project-where-logging-is-enabled}/logging",
          "Effect": "Allow"
        }
      ]
    }

Enable service logs

Important

The service log feature records only logs generated after you enable it. It does not record historical logs.

  1. Log on to the Simple Log Service console.

  2. In the Projects section, click the one you want.

    image

  3. On the Service Log tab of the project details page, enable the feature.

    image

  4. In the panel that appears, configure the following parameters and click OK.

    image

    Parameters

    Parameter

    Description

    Enable Service Logs

    Select log types to collect. Details in the Background section.

    Log Storage Location

    • Automatic Creation (Recommended): Log Service automatically creates a project named log-service-{user-id}-{region} in the same region. We recommend storing all service logs from the same region in this project.

    • Current Project: Stores service logs in the current project.

    • Other projects in the drop-down list: Stores service logs in another existing project in the current region.

Modify service log configurations

  1. In the project list, click image next to the target project to go to its details page.

  2. On the project details page, click the Settings icon icon on the Service Log tab. In the panel that appears, modify Enable Service Logs and Log Storage Location, and click OK.

    image

    Important
    • We recommend storing service logs in the project created by the Automatic Creation (Recommended) option. Service logs from multiple projects in the same region can share a single project.

    • Changing Log Storage Location redirects new logs to the new project. Existing data in the original project is not moved or deleted. To remove it, manually delete the original project.

Disable service logs

  1. On the target project page, click image to open the details page, then click Settings icon on the Service Log tab.

  2. In the Modify Service Log Settings panel, clear all selected log types in the Enable Service Logs section, and then click OK.

    Important

    Disabling the service log feature does not delete existing log data. Data is removed only after its retention period expires. If you no longer need it, manually delete the project that stores service logs.