title: AWS CloudWatch Logs Insights alarms
body: <p>Is it possible to set alarms based on CloudWatch Logs Insights queries? In <a href="https://aws.amazon.com/about-aws/whats-new/2018/11/announcing-amazon-cloudwatch-logs-insights-fast-interactive-log-analytics/" rel="noreferrer">this</a> page it says the following: <em>In addition, you can publish log-based metrics, <strong>create alarms</strong>, and correlate logs and metrics together in CloudWatch Dashboards for complete operational visibility.</em> 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.</p>