QuestionQ30

Monitoring, Logging, Analysis, Remediation, and Performance Optimization

A company operates a critical serverless application that uses multiple AWS Lambda functions. Each Lambda function produces 1 GB of log data per day in its own Amazon CloudWatch Logs log group. The company’s security team requests a count of application errors, grouped by type, across all log groups.

What should a CloudOps engineer do to satisfy this requirement?

Explanation

CloudWatch Logs Insights can query multiple log groups and aggregate the matching log events. The stats command supports count() and grouping by a field, so it can return the count of application errors for each error type across the selected Lambda log groups.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!