AWS Classroom notes 14/Feb/2024

Cloud Watch Logs

  • Refer Here for official docs
  • Log Classes Refer Here
    • Standard
    • Infrequent
  • Lets use cloudwatch agent to send logs from ec2
    Preview
  • 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

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube