hands-on lab

Leveraging Artificial Intelligence to Analyze Amazon CloudWatch Logs

Up to 45m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.


Amazon CloudWatch Logs leverages machine learning (ML) and generative artificial intelligence (GenAI) to provide a more intuitive and efficient way to analyze logs. These capabilities are available through the Amazon CloudWatch Logs Query Generator and Amazon CloudWatch Logs Insights.

Amazon CloudWatch Logs Query Generator can generate log queries using natural language, saving time and effort when writing queries. This console feature is especially useful for users who are not familiar with the CloudWatch Logs query language.

CloudWatch Logs Insights also provides the ability to detect and analyze patterns. These log patterns can be used to identify trends and anomalies in log data, which can be useful for troubleshooting and monitoring purposes.

In this lab, you will use the Amazon CloudWatch Logs Query Generator to generate queries using natural language and analyze patterns with Amazon CloudWatch Logs Insights.

Learning objectives

Upon completion of this beginner-level lab, you will be able to:

  • Generate queries using natural language with Amazon CloudWatch Logs Query Generator
  • Detect and analyze patterns with Amazon CloudWatch Logs Insights

Intended audience

  • Candidates for the AWS Certified Machine Learning - Specialty certification
  • Cloud Architects
  • Data Engineers
  • Software Engineers


Familiarity with the following will be beneficial but is not required:

  • Amazon CloudWatch
  • Amazon CloudWatch Logs Insights

The following content can be used to fulfill the prerequisites:

Environment before

Environment after

About the author

Jun Fritz, opens in a new tab
Cloud Labs Developer
Learning paths

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content. 

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Using Natural Language to Generate Queries With CloudWatch Logs Query Generator
Identifying Log Patterns With Amazon CloudWatch Logs Insights