Forward Deep Learning Containers (DLC) job logs from your Platform for AI (PAI) workspace to Simple Log Service (SLS) to debug training failures, monitor job progress, and run custom log analysis.
Prerequisites
Before you begin, make sure that you have:
A PAI workspace
(RAM users only) The
AliyunLogFullAccesspermission granted to your RAM user or RAM role. For details, see Grant permissions to a RAM user.
Forward DLC job logs to SLS
Log on to the PAI console. In the top navigation bar, select a region.
In the left-side navigation pane, click Workspaces. On the Workspace List page, click the name of the workspace to manage.
From the Configure Workspace drop-down list on the right, select Configure SLS.

On the Configure SLS page, set the following parameters and click OK.
Parameter Description SLSProject The SLS project to receive logs. Projects isolate and manage SLS resources. If no projects appear in the list, click Create SLS Project. For details, see Manage projects. LogStore The SLS Logstore to store logs. Logstores collect, store, and query log data. If no Logstores appear in the list, click Create LogStore. For details, see Manage a logstore. Modules that require SLS storage Select Deep Learning Containers (DLC). 
After configuration, DLC job logs from this workspace are forwarded to the selected Logstore. Open the Logstore in the SLS console to query and analyze your job logs.
FAQ
The log forwarding configuration page shows no data
Your RAM user or RAM role does not have the permissions to read the Logstore.

Go to the RAM console and grant the AliyunLogFullAccess permissions to your RAM user or RAM role. For details, see Grant permissions to a RAM user.
Log forwarding configuration fails

Your RAM user or RAM role is missing the permissions to enable or disable Logstore forwarding. Create a custom RAM policy with the following content and attach it to your RAM user or RAM role:
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"log:GetProductDataCollection",
"log:CloseProductDataCollection",
"log:OpenProductDataCollection"
],
"Resource": "*"
}
]
}For details, see Create custom policies and Grant permissions to a RAM user.