Monitor with CloudWatch Logs Insights
This solution deploys four CloudWatch Logs Insights saved queries that appear in the CloudWatch Logs Insights console
Each query name includes the stack name and Region for identification across multiple deployments. For example: DLT - Test Timeline [my-stack us-east-1].
Using saved queries
To run a saved query:
-
Open the CloudWatch Logs Insights console
. -
In the left panel, expand Saved queries.
-
Select a query prefixed with
DLT -. -
If the query contains a placeholder value such as
REPLACE_WITH_TEST_RUN_ID, replace it with the actual test run ID from your test results. -
Choose Run query.
DLT - Test Timeline
Shows the full lifecycle for a single test run across all orchestration Lambda functions. Use this query to trace the sequence of events from test creation through completion.
| Attribute | Value |
|---|---|
|
Fields |
|
|
Filter |
|
|
Sort |
|
|
Limit |
500 |
Replace REPLACE_WITH_TEST_RUN_ID with the test run ID you want to investigate.
DLT - Test Errors
Shows all ERROR-level entries for a single test run across Lambda functions and ECS tasks. Use this query to identify the root cause when a test fails or produces unexpected results.
| Attribute | Value |
|---|---|
|
Fields |
|
|
Filter |
|
|
Sort |
|
Replace REPLACE_WITH_TEST_RUN_ID with the test run ID you want to investigate.
DLT - Task Failures
Shows individual ECS task failures with stop codes and failure classification. Use this query to understand why specific Fargate tasks stopped during a test.
| Attribute | Value |
|---|---|
|
Fields |
|
|
Filter |
|
|
Sort |
|
|
Limit |
50 |
This query does not require a test run ID — it shows all recent task failures across all test runs.
DLT - Orphan Cleanup
Shows the history of orphaned ECS service detection. Use this query to verify that the hourly orphan cleanup process is finding and removing abandoned services.
| Attribute | Value |
|---|---|
|
Fields |
|
|
Filter |
|
|
Sort |
|
|
Limit |
50 |