QuestionQ83

VerifiedTroubleshooting and Optimization

A developer wants to debug an application by searching and filtering log data. The application logs are stored in Amazon CloudWatch Logs. The developer creates a new metric filter to count exceptions in the application logs. However, no results are returned from the logs.

What is the reason that no filtered results are being returned?

Explanation

CloudWatch Logs metric filters apply prospectively—they only generate metric data points for log events that arrive after the filter is created. They do not retroactively analyze or filter logs that existed before the filter was established. If logs were ingested before the metric filter was created, they will not produce any metric data points, even if they match the filter pattern.

Learn more

Community Discussion

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