All hands-on labs

Premium Hands-on labbeginnerblue teamAWS

Install and Configure the Amazon CloudWatch Unified Agent on EC2

Learn how to install and configure the Amazon CloudWatch Unified Agent on an EC2 instance to collect both system metrics and application logs. You will connect to an EC2 instance, install the agent, generate a configuration template using the built in wizard, and start the agent using that configuration. By the end of the lab, you will verify that metrics and logs are successfully being sent to Amazon CloudWatch and understand how the CloudWatch agent uses IAM roles, local configuration files, and AWS services to provide visibility into EC2 workloads. This skill is foundational for monitoring, troubleshooting, and security visibility in AWS environments.

  • 9 guided tasks
  • Video walkthrough

Scenario

Out of the box, EC2 instances don't send application logs or detailed system metrics to CloudWatch. When something goes wrong inside an instance, the basic metrics don't show what happened, so someone has to log in and investigate by hand. To close that gap, you'll install and configure the CloudWatch Unified Agent on an instance, and then confirm that its logs arrive in CloudWatch.

What you will learn

  • Connect to an EC2 instance with EC2 Instance Connect.
  • Install the CloudWatch Unified Agent with yum.
  • Generate a reusable agent configuration file with the configuration wizard.
  • Start the agent with that configuration file.
  • Verify that application logs arrive in CloudWatch Logs.
Hands-on lab

Install and Configure the Amazon CloudWatch Unified Agent on EC2

Included in Cybr Premium.