All Products
Search
Document Center

Platform For AI:Subscribe to job logs

Last Updated:Apr 01, 2026

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:

Forward DLC job logs to SLS

  1. Log on to the PAI console. In the top navigation bar, select a region.

  2. In the left-side navigation pane, click Workspaces. On the Workspace List page, click the name of the workspace to manage.

  3. From the Configure Workspace drop-down list on the right, select Configure SLS.

    image

  4. On the Configure SLS page, set the following parameters and click OK.

    ParameterDescription
    SLSProjectThe 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.
    LogStoreThe 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 storageSelect Deep Learning Containers (DLC).

    image

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.

image

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

image

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.