Cloud Watch Logs
- Refer Here for official docs
- Log Classes Refer Here
- Standard
- Infrequent
- Lets use cloudwatch agent to send logs from ec2

-
Activity
- Create a ubuntu server and install apache
- Install cloudwatch agent Refer Here and Refer Here for installation
cd /tmp
wget https://amazoncloudwatch-agent.s3.amazonaws.com/ubuntu/amd64/latest/amazon-cloudwatch-agent.deb
sudo dpkg -i amazon-cloudwatch-agent.deb - edit the configuration file Refer Here
- create a role with access to cloudwatch and assign to the ec2 as shown in the class
- Lets start the cloudwatch agent Refer Here
- send access logs to cloud watch logs.
- To be discussed: lets figure out why were logs not shipped in the next session
