https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html
- ID: cloudwatch-logs/getting-started
- Level: beginner
- Core actions:
logs:CreateLogGroup,logs:PutLogEvents,logs:FilterLogEvents,logs:StartQuery
- Create a log group
- Set retention to 7 days
- Create a log stream
- Put 5 log events (INFO/WARN/ERROR)
- Get log events
- Filter for ERROR and WARN
- Run a Logs Insights query
| Resource | Type |
|---|---|
/tutorials/cloudwatch-logs-gs |
Log group |
Negligible for 5 log events. All resources removed during cleanup.
~14 seconds
| Field | Value |
|---|---|
| Date | 2026-04-14 |
| Script lines | 91 |
| Exit code | 0 |
| Runtime | 14s |
| Steps | 7 |
| Issues | None |
| Version | v1 |