Menu
Documentationbreadcrumb arrow Grafana Cloudbreadcrumb arrow What's new in Grafana Cloudbreadcrumb arrow Query CloudWatch Logs Insights with PPL and SQL
Grafana Cloud
← Back to What's new
Generally AvailableData sources
Release date: 2024-12-05

Query CloudWatch Logs Insights with PPL and SQL

The AWS CloudWatch data source plugin now offers two new query languages for searching through logs: OpenSearch PPL and OpenSearch SQL. You now have increased flexibility to choose a more familiar query language and to take advantage of their unique features (like the SQL JOIN command) when querying AWS CloudWatch Logs Insights. In addition to the already supported Logs Insights QL option, you can find the added query language options in the new Query language drop-down list.

CloudWatch logs explore query languages drop-down list opened

We’ve also updated the query editor to support syntax highlighting and to provide suggestions while you type, which simplifies writing complex queries. When you select log groups, the suggestions also include discovered fields.

Not sure where to start? We’ve also updated our CloudWatch Logs cheat sheet with the most commonly used queries so you can paste and customize to fit exactly what you need. Clicking on any of the example queries prefills the query input field.

CloudWatch Logs cheat sheet with help icon highlighted

For the complete list of commands supported for OpenSearch PPL and SQL, refer to the Cloudwatch Logs Insights documentation.