The log forwarding feature of Simple Log Service allows you to forward logs of Deep Learning Containers (DLC) jobs from the current workspace of Platform for AI (PAI) to a specific Logstore for custom analysis.
Prerequisites
If you want to configure log forwarding as a RAM user, the AliyunLogFullAccess permission is granted to the RAM user. For more information, see Grant permissions to a RAM user.
Procedure
Go to the Workspace Details page.
In the left-side navigation pane, click Workspaces. On the Workspaces page, click the name of the workspace that you want to view.
Log on to the PAI console.
In the Log Service section on the right side of the Workspace Details page, click Settings.
In the SLS Logs panel, configure the following parameters and click OK:
Parameter
Description
SLSProject
The SLS project. SLS projects are used to isolate and manage resources. If no projects are available in the drop-down list, click Create SLS Project to create a project. For more information, see Manage a project.
LogStore
The SLS Logstore. Logstores are used to collect, store, and query logs. If no Logstores are available in the drop-down list, click Create Logstore to create a Logstore. For more information, see Manage a Logstore.
Modules that require SLS storage
Select Distributed Training (DLC).
FAQ
What do I do if no data is available on the page when I configure log forwarding?
Error information
Cause
You do not have the permissions to read the Logstore.
Solution
Go to the RAM console and grant the AliyunLogFullAccess permissions to the RAM user or RAM role. For more information, see Grant permissions to a RAM user.
What do I do if I fail to configure log forwarding?
Error information
Cause
You do not have the permissions to enable or disable the log forwarding feature of the Logstore.
Solution
Go to the RAM console and grant the Logstore forwarding permissions to the RAM user or RAM role. For more information, see Create custom policies and Grant permissions to a RAM user.
{ "Version": "1", "Statement": [ { "Effect": "Allow", "Action": [ "log:GetProductDataCollection", "log:CloseProductDataCollection", "log:OpenProductDataCollection" ], "Resource": "*" } ] }