Use the service log feature to obtain resource operation logs (create, modify, update, and delete) and task execution logs (scheduled SQL, data import, and data shipping) from a Project; consumer group latency logs from a LogStore; and Logtail error, heartbeat, and statistics logs. This topic describes how to enable, disable, and modify service log configurations.
Background information
When you enable the service log feature, you can select the service log type, including detailed log, important log, and task execution log. For more information about the log types and their fields, see Service log types.
-
Detailed log: Log Service creates a LogStore named internal-operation_log and a dashboard in the selected Project.
-
Important log: Log Service records logs, such as consumer group latency and Logtail heartbeat logs, in a LogStore named internal-diagnostic_log within the selected Project.
-
Task execution log: Log Service records execution logs for tasks such as data import, scheduled SQL, and data shipping in a LogStore named internal-diagnostic_log within the selected Project.
Billing
-
Detailed log: Detailed logs are billed in the same way as a standard LogStore. For more information, see Billable items in pay-by-feature mode.
-
Important log: Ingestion, storage, and query analysis are free of charge. You are charged on a pay-as-you-go basis for operations such as data processing and data shipping.
-
Task execution log: Ingestion, storage, and query analysis are free of charge. You are charged on a pay-as-you-go basis for operations such as data processing and data shipping.
Prerequisites
-
A Project is created. For more information, see Manage a Project.
-
If you are a RAM user, an Alibaba Cloud account must grant you the required permissions. For information about how to grant permissions, see Create and authorize a RAM user. The following template shows a custom permission policy:
Enable service logs
Only service logs generated after you enable this feature are recorded.
Log on to the Simple Log Service console.
In the Projects section, click the one you want.

-
On the details page of the target Project, click the Service Log tab.
-
In the right-side panel, configure the parameters as described in the following table and click OK.
Modify service log configurations
-
On the target Project page, click
to go to the details page. -
On the details page of the target Project, click
on the Service Log tab. In the panel that appears on the right, modify Enable Service Logs and the log storage location, and then click OK.The service log types are detailed log, important log, and task execution log. You can enable or disable each type.
Important-
We recommend that you store service logs in the Project that is created by using the Automatic Creation (Recommended) option. All service logs from Projects in the same region can be stored in a single Project.
-
After you change the log storage location, new service logs are written to the specified Project. Existing log data is not migrated from the original Project. If you no longer need this data, you must manually delete the original Project.
-
Disable service logs
-
On the target Project page, click
to open its details page, and then click
on the Service Log tab. -
In the Modify Service Log Settings panel, under Enable Service Logs, deselect all log types and click OK.
ImportantDisabling the service log feature does not automatically delete existing log data. This data is cleared only after its retention period expires. If you no longer need the data, you can manually delete the Project.