Lists the log files for a job executor.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/workspaces/{workspaceId}/jobRuns/{jobRunId}/executors/{executorId}/logs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
Yes |
The ID of the workspace. |
w-d2d82aa09155**** |
| jobRunId |
string |
Yes |
The ID of the job run. |
jr-f09a8fda2396**** |
| executorId |
string |
Yes |
The ID of the job executor. |
1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| nextToken |
string |
No |
The pagination token. This is the |
1 |
| maxResults |
integer |
No |
The maximum number of results to return per page. Valid values: 1 to 100. Default value: 20. |
20 |
| logType |
string |
No |
The type of log. Only logs of this type are returned. |
log4j |
| regionId |
string |
No |
The ID of the region. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944 |
| nextToken |
string |
The token to retrieve the next page of results. This value is null when there are no more results to return. |
2 |
| maxResults |
integer |
The maximum number of results returned per page. |
20 |
| totalCount |
integer |
The total count of log files. |
200 |
| logs |
array<object> |
The retrieved logs, sorted in contextual order. If no contextual logs are found based on the specified starting log, this parameter is empty. |
|
|
object |
A log file object. |
||
| logName |
string |
The log name. |
log4j.log |
| logType |
string |
The log type. |
log4j |
| fileName |
string |
The full path of the log file. |
oss://spark-*********/w-*******467/spark/logs/jr-581482ffa9f4e0e8/driver/stdout.log |
| updateTime |
integer |
The time the log file was last updated, as a Unix timestamp. |
1745390462 |
| fileSize |
integer |
The size of the file, in bytes. |
6383327 |
Examples
Success response
JSON format
{
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944",
"nextToken": "2",
"maxResults": 20,
"totalCount": 200,
"logs": [
{
"logName": "log4j.log",
"logType": "log4j",
"fileName": "oss://spark-*********/w-*******467/spark/logs/jr-581482ffa9f4e0e8/driver/stdout.log",
"updateTime": 1745390462,
"fileSize": 6383327
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.