Get the logs for an environment
GET /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs
GET
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs
Retrieves logs from CloudWatch for the specified environment with optional filtering by time range, container, and pattern matching. Supports pagination via nextToken.
Authorizations
Parameters
Path Parameters
organisation
required
string
The organisation ID
application
required
string
The application ID
environment
required
string
The environment ID
Query Parameters
startTime
string
Start time for log retrieval (ISO 8601 format or Unix timestamp)
endTime
string
End time for log retrieval (ISO 8601 format or Unix timestamp)
containerName
string
Filter logs by specific container name
filterPattern
string
CloudWatch Logs filter pattern for searching log content
limit
integer
Maximum number of log entries to return per page
nextToken
string
Pagination token from previous response for retrieving next page of results
Responses
200
The logs
object
logEvents
Array of log events
Array<object>
object
timestamp
Unix timestamp in milliseconds
integer
message
Log message content
string
nextToken
Token for fetching next page of results (null if no more pages)
string
404
The environment not found
422
Validation error