Get the logs for an environment
GET
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/logs
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env/logs';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”organisation
required
string
The organisation ID
Example
test-orgapplication
required
string
The application ID
Example
test-appenvironment
required
string
The environment ID
Example
test-envQuery Parameters
Section titled “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
Section titled “Responses”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
Examplegenerated
{ "logEvents": [ { "timestamp": 1, "message": "example" } ], "nextToken": "example"}The environment not found
Validation error
