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
logstorenamed internal-operation_log in the selectedprojectand adashboardin the currentproject. -
Important log: Collects key diagnostics (
consumer grouplatency,Logtailheartbeat) and stores them in alogstorenamed internal-diagnostic_log in the selectedproject. -
Job log: Collects execution logs for
data import,scheduled SQL, anddata shippingjobs, stored in alogstorenamed internal-diagnostic_log in the selectedproject.
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 transformationanddata shippingare billed on apay-as-you-gobasis. -
Job log: Ingestion, storage, and query and analysis are free. Operations such as
data transformationanddata shippingare billed on apay-as-you-gobasis.
Prerequisites
-
You have created a project. Manage a Project.
-
If you use a
RAM user, ensure the required permissions are granted by theAlibaba Cloud account. Create a RAM user and grant permissions to the RAM user. Samplepolicy:
Enable service logs
The service log feature records only logs generated after you enable it. It does not record historical logs.
Log on to the Simple Log Service console.
In the Projects section, click the one you want.

-
On the Service Log tab of the
projectdetails page, enable the feature.
-
In the panel that appears, configure the following parameters and click OK.

Modify service log configurations
-
In the project list, click
next to the target project to go to its details page. -
On the
projectdetails page, click the
icon on the Service Log tab. In the panel that appears, modify Enable Service Logs and Log Storage Location, and click OK.
Important-
We recommend storing service logs in the
projectcreated by the Automatic Creation (Recommended) option. Service logs from multiple projects in the sameregioncan share a singleproject. -
Changing Log Storage Location redirects new logs to the new
project. Existing data in the originalprojectis not moved or deleted. To remove it, manually delete the original project.
-
Disable service logs
-
On the target project page, click
to open the details page, then click
on the Service Log tab. -
In the Modify Service Log Settings panel, clear all selected log types in the Enable Service Logs section, and then click OK.
ImportantDisabling the
service logfeature 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.