Execution Logs
Retrieve logs about task runs.
Endpoints
-
https://api.eu.cloud.talend.com
URL for the AWS Europe region
-
https://api.ap.cloud.talend.com
URL for the AWS Asia Pacific region
-
https://api.us.cloud.talend.com
URL for the AWS United States East region
-
https://api.au.cloud.talend.com
URL for the AWS Australia region
-
https://api.us-west.cloud.talend.com
URL for the Azure United States West region
Security scheme
This scheme can be referenced across the API
Public
This Bearer authentication can be set in the Authorization header of your requests. Authentication tokens and Personal Access Tokens are supported. Personal Access Tokens can be generated in the Profile Preferences page of the Talend Cloud Portal.
Name | Description |
---|---|
Format | Bearer <token> |
Logs
Delete logs of a specified execution
DELETE /monitoring/executions/{id}/logsThis endpoint allows users with the
Execution Logs - Delete
permission (ID: EXECUTION_LOGS_DELETE
) to delete logs for a given execution identified by its ID.Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
id | string Required |
Response
200Status 200
The logs have been deleted successfully or there are no logs to be deleted.
400Status 400
execution ID is not a UUID
401Status 401
Not authorized to access resources
403Status 403
No permissions to access resources
404Status 404
Execution with provided ID, has not been found
500Status 500
Something went wrong and some or none of the execution logs have been deleted
Generate full logs for a completed or ongoing execution
POST /monitoring/executions/{id}/logsThis endpoint generates the full log of a given task run and returns a download token to this log.
This token is valid for one hour.
This token is valid for one hour.
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
id | string Required |
Name | Description | Type | Attributes and examples |
---|---|---|---|
fileFormat | Format of the log file to be generated. The available formats are json and text. | string Optional |
JSON fileFormat=TEXT |
endTime | Latest date and time of the logs to be put in the generated log. By default, current time is used | string Optional |
2021-06-14T15:04:45Z |
newFileName | This parameter indicates whether you need to include task IDs and execution IDs in the filename of the log to be generated. It generates a distinctive file name reading like: taskID_executionID.log It is recommended to set this value to be true as the old filename format is going to be deprecated. |
boolean Optional | |
startTime | Earliest date and time of the logs to be put in the generated log. By default, logs are retrieved from the start time of the run | string Optional |
2021-06-14T07:01:45Z |
Response
200Status 200
Successful response
Body
application/json
Object
Name | Description | Type | Attributes and examples |
---|---|---|---|
size | Number of lines in logs | number Required | |
token | Token used to check the status of the log file generation | string Required |
400Status 400
Bad Request
401Status 401
Unauthorized
403Status 403
Forbidden - no permissions to access resource
404Status 404
Not found - resource not found
500Status 500
Server error - something went wrong on server side
Get task execution logs
GET /monitoring/executions/{id}/logsGet run logs of a given task by its execution ID (also referred to as run ID)
Use cases
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
id | string Required |
Name | Description | Type | Attributes and examples |
---|---|---|---|
count | Number of log entries to return. The default value is 50 and the maximum value is 200 | number Optional |
50 |
endTime | latest date and time of the logs to be retrieved. By default, current time is used | datetime Optional |
2021-06-14T15:04:45Z |
order | The way in which the returned logs are sorted by their timestamps. The default value is DESC, meaning the latest logs are put first | string Optional |
DESC |
startIndex | Start position of the pagination of the logs, greater or equal to 0 | number Optional | |
startTime | Earliest date and time of the logs to be put in the generated log. By default, logs are retrieved from the start time of the run | datetime Optional |
2021-06-14T07:01:45Z |
Response
200Status 200
Successful response
Body
application/json
Object
Name | Description | Type | Attributes and examples | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
size | Number of log entries in the current page | number Required | ||||||||||
totalSize | Total number of log entries for the give execution ID | number Required | ||||||||||
totalSizeFiltered | Total number of log entries for the given execution ID, for the specific time range defned in the request | number Optional | ||||||||||
data | array of Object Optional |
|
||||||||||
nextIndex | Next index for pagination if it exists | number Optional |
500Status 500
Server error - something went wrong on server side
Body
application/json
Check log generation status and return download URL
POST /monitoring/executions/{id}/logs/statusCheck the status of the generated log and return a download URL.
You need to put the download token in the body.
Request
Name | Description | Type | Attributes and examples |
---|---|---|---|
id | string Required |
Body
text/plain
Token returned to the request at the POST /monitoring/executions/{id}/logs endpoint.
string
text/plain
aec20220-f745-4da6-a5e0-b6dfe083eee5
Response
200Status 200
Successful response
Body
application/json
Object
Name | Description | Type | Attributes and examples |
---|---|---|---|
presignedURL | URL to download full logs, valid for 60 minutes | string Optional | |
status | Status of full log file generation | string Required |
|
400Status 400
Bad Request
401Status 401
Unauthorized
403Status 403
Forbidden - no permissions to access resource
404Status 404
Not found - resource not found
500Status 500
Server error - something went wrong on server side
ErrorResponse
Object
Name | Description | Type | Attributes and examples |
---|---|---|---|
status | number Optional | ||
message | string Optional | ||
requestId | string Optional | ||
detail | detail message for 401 - unauthorized error | string Optional |