Managing AI DataLake Job Logs Using LTS
During the development, debugging, and online O&M of big data jobs, real-time log viewing, log searching, and log analysis are required. AI DataLake can automatically deliver standard output logs of jobs to Log Tank Service (LTS), which improves log management efficiency and user experience. You only need to associate endpoints with LTS on the AI DataLake console, and the system automatically collects, queries, and analyzes logs in real time. This simplifies log management, improves fault locating and troubleshooting efficiency, and ensures secure isolation of log data to meet security and compliance requirements in multi-tenant scenarios.
Notes and Constraints
- Only AuraJob, AuraJobV2, RayCluster, and RayJob endpoints support connection between AI DataLake and LTS log streams.
- Each endpoint can be associated with only one LTS log stream.
- A log stream can be associated with multiple endpoints.
- To associate an endpoint with LTS, you must have the permissions listed in Table 1.
Table 1 Permissions required to associate an endpoint with LTS Permission Type
API
Role/Policy-based Authorization
Identity Policy-based Authorization
Permission required to create an endpoint
POST /v2/workspaces/{workspace_id}/endpoints
DataArtsFabric:endpoint:create
DataArtsFabric:endpoint:create
Permission required to read log groups
GET /v2/{project_id}/groups
lts:groups:get
lts:logGroup:listLogGroup
Permission required to read log streams
GET /v2/{project_id}/groups/{log_group_id}/streams
lts:topics:get
lts:logStream:listLogStream
Notes
After LTS is associated, data stored in log groups and log streams will be billed according to the LTS billing rules. For details, see LTS Billing.
Procedure

Use the following procedure to manage AI DataLake job logs using LTS:
- Create an endpoint and associate it with LTS: When creating an endpoint, create a corresponding log group and log stream. Logs for all jobs submitted using endpoints are then stored in the designated log group and log stream through LTS.
- View LTS logs: After associating with LTS, search for and view logs based on the log types supported by LTS.
Concepts
This section describes basic concepts related to LTS, helping you quickly and efficiently perform operations such as device O&M management, user service trend analysis, and security monitoring and audit.
Step 1: Create an Endpoint and Associate It with LTS
- Log in to the AI DataLake console.
- When creating an endpoint, configure the Ingest Logs to LTS parameters.
- For details about creating an Aura engine endpoint, see Creating an Aura Engine Endpoint.
- For details about creating a Ray engine endpoint, see Creating a Ray Engine Endpoint.

- Ingest Logs to LTS: Select this option.
- Log Group: Select a log group.
- Log Stream: Select a log stream.
If no log groups or log streams are available, create them first. The operations are as follows:- Click Create Log Group next to the Log Group text box.
- In the Create Log Group and Log Stream panel that appears, set the parameters.
- Log Group Name: Enter a name for the log group.
- Log Stream Name: Enter a name for the log stream.
- Log Retention (Days): Set the log storage duration. Logs are stored for 30 days by default.
- Enterprise Project: Select an enterprise project.
For details about the parameters, see Creating a Log Group and Creating a Log Stream.
- Click OK. Then, click
next to the log group and log stream fields to update the drop-down lists, and select your log group and log stream.
- Click Create Now. The endpoint is now associated with the LTS log group and log stream.
Once the association is complete, logs for all jobs submitted using that endpoint will be stored in the designated log group and log stream through LTS.
- Running jobs: Only logs generated after the association is completed will be stored in LTS.
- New jobs: All logs generated by newly submitted jobs will be stored in LTS.
Step 2: View LTS Logs.
Run a job on the endpoint, and view the job logs using the job ID.
- In the job run history list, locate the job ID. For details, see Viewing the Job Run History.
- View the logs.
- Log in to the LTS console.
- Choose Log Management.
- In the log group list, click
next to the target log group and click the log stream name to go to the log stream details page. - On the Real-Time Logs tab page, click Search and enter the job ID to view the job logs.
Related Information: Log Types Supported by LTS
| Engine | logType | Description | Node Path |
|---|---|---|---|
| Aura | aura-kernel-log | Kernel logs generated during job running | /home/snuser/log/instances/*.log |
| aura-python-udf-log | Logs customized by users in user-defined functions (UDFs) during job running | /home/snuser/log/python_udf/*.log | |
| aura-entrypoint-log | Entry point script or user script logs generated during job running | /home/snuser/log/entrypoint/*.log | |
| Ray | ray-cluster-log | Head and worker process logs of the RayCluster endpoint and job run logs | /tmp/ray/session_*/logs/**/* |
| ray-job-log | Head and worker process logs of the RayJob endpoint and job logs of a temporary cluster | /tmp/ray/session_*/logs/**/* |
Job logs of AuraJob are run logs generated by applications in the user image. AI DataLake does not provide a separate log type.
Related Operations: Disassociating LTS
After LTS is associated, logs of all jobs executed on the endpoint will be stored in the LTS log group.
If you no longer need LTS for log storage, you can disassociate it at any time.
- Log in to the AI DataLake console.
- Click the target endpoint to go to the endpoint management page.
- Click Edit in the upper right corner. On the page for editing the engine endpoint, deselect Ingest Logs to LTS.
- Click OK to disassociate the endpoint from LTS.
After the endpoint is disassociated from LTS, if you no longer need the logs in the log group and log stream, delete them promptly to avoid incurring additional fees.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot