Skip to content

Get the logs for an environment

GET
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs
curl --request GET \
--url https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env/logs \
--header 'Authorization: Bearer <token>'

Retrieves logs from CloudWatch for the specified environment with optional filtering by time range, container, and pattern matching. Supports pagination via nextToken.

organisation
required
string

The organisation ID

Example
test-org
application
required
string

The application ID

Example
test-app
environment
required
string

The environment ID

Example
test-env
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
>= 1 <= 10000

Maximum number of log entries to return per page

nextToken
string

Pagination token from previous response for retrieving next page of results

The logs

Media typeapplication/json
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
nullable
Examplegenerated
{
"logEvents": [
{
"timestamp": 1,
"message": "example"
}
],
"nextToken": "example"
}

The environment not found

Validation error