Exploring CloudWatch Logs Insights
We discussed CloudWatch Logs Insights as a part of layer 4 in Chapter 2, Overview of Observability Landscape on AWS, and learned about the functionalities provided by Logs Insights. Logs Insights is a feature of CloudWatch Logs that allows querying log groups without exporting them to an external tool.
CloudWatch Logs Insights features a purpose-built query language with the key benefits of fast execution, query auto-completion, and log field discovery. It provides the ability to save queries and organize them into folders. It has built-in support for service logs, including discovered fields and sample queries, and makes log analysis effortless.
Logs Insights discovers fields automatically and works with both AWS logs and custom logs from custom applications that are in JSON format. Logs Insights generates field names automatically. If the custom logs are not in JSON format, we can still query them in Logs Insights and split them into fields...