From the course: Monitoring AWS with CloudWatch

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Creating log metrics

Creating log metrics

- [Instructor] Almost all applications have their own errors and error codes that they throw. While using metrics, we can see how many times something failed. We can take this one step further and convert our logs into metrics, so we can better analyze our applications. AWS CloudWatch enables us to turn logs into metrics that we can derive quick insights and understand how our applications are performing. For example, a traditional way of finding out how many times a specific error occurs in our API would be to query the logs and see the results. But we can actually create a metric rule against our logs so we can easily visualize this over time in an easy to understand metric. Let's go ahead and see how we can create our own metrics from our own logs. In CloudWatch, navigate to Log groups under Logs. And in here, now first, we are going to need to select our log group. Remember, each service sends the logs on a specific…

Contents