You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Metrics tell you what is happening; logs tell you why. CloudWatch Logs is a fully managed service for ingesting, storing, and querying log data from AWS services and your own applications. Paired with CloudWatch Logs Insights — a purpose-built query language — you can search gigabytes of logs in seconds.
A log group is a container for log streams that share the same retention, monitoring, and access-control settings. You typically create one log group per application or per environment:
/aws/lambda/order-processor/ecs/production/payment-service/custom/my-web-appWithin a log group, a log stream represents a single source of log events — for example, one Lambda invocation, one EC2 instance, or one ECS container. Streams are created automatically by most AWS integrations.
A log event is a single record containing a timestamp and a raw message. Events are immutable once written.
Many AWS services send logs to CloudWatch automatically or with minimal configuration:
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.