Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS CloudWatch Logs Insights alarms

Is it possible to set alarms based on CloudWatch Logs Insights queries? In this page it says the following: In addition, you can publish log-based metrics, create alarms, and correlate logs and metrics together in CloudWatch Dashboards for complete operational visibility. but i can't figure out how to do that. I would like to have a custom metric based on some query, add it to a dashboard (which i know how to do) and set an alarm on that.

like image 364
jimmone Avatar asked Nov 19 '19 13:11

jimmone


People also ask

Is it possible to set alarms based on Cloudwatch Logs insights queries?

Is it possible to set alarms based on CloudWatch Logs Insights queries? In this page it says the following: In addition, you can publish log-based metrics, create alarms, and correlate logs and metrics together in CloudWatch Dashboards for complete operational visibility. but i can't figure out how to do that.

What is AWS CloudWatch?

AWS CloudWatch Metrics, Logs, Alarms, and Dashboards Amazon CloudWatch is a monitoring and management service built for developers, system operators, site reliability engineers (SRE), and IT managers.

What are Cloudwatch Logs metrics?

CloudWatch Logs uses these metric filters to turn log data into numerical CloudWatch metrics that you can graph or set an alarm on. When you create a metric from a log filter, you can also choose to assign dimensions and a unit to the metric. If you specify a unit, be sure to specify the correct one when you create the filter.

How do I use Amazon CloudWatch logs?

You can use Amazon CloudWatch Logs to monitor, store, and access your log files from Amazon Elastic Compute Cloud (Amazon EC2) instances, AWS CloudTrail, Route 53, and other sources. CloudWatch Logs enables you to centralize the logs from all of your systems, applications, and AWS services that you use, in a single, highly scalable service.


1 Answers

I think this is ambiguous wording on their part and the focus of that sentence is really to highlight some of the other capabilities of CloudWatch that can be brought together in the dashboard. Alarms are created based on one or more Metrics (pushed via the CLI or an API).

The announcement on the AWS Blog spins it a slightly different way: CloudWatch Integration – You can write a bit of glue code to run queries, use the results to publish Custom Metrics. Then you can visualize them, set alarms, and so forth, all with the goal of simplifying and accelerating your troubleshooting.

like image 137
Patrick Avatar answered Oct 01 '22 15:10

Patrick