Skip to content

Instantly share code, notes, and snippets.

@BorysVrublevskyi
Created July 3, 2024 13:13
Show Gist options
  • Save BorysVrublevskyi/af36c1f78933e5b4abf65230a2ea692d to your computer and use it in GitHub Desktop.
Save BorysVrublevskyi/af36c1f78933e5b4abf65230a2ea692d to your computer and use it in GitHub Desktop.
How to install and configure amazon cloudwatch agent

Source https://devopscube.com/how-to-setup-and-push-serverapplication-logs-to-aws-cloudwatch/

sudo yum install collectd
sudo yum install amazon-cloudwatch-agent
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard
ll /opt/aws/amazon-cloudwatch-agent/bin/config.json
sudo cp /opt/aws/amazon-cloudwatch-agent/bin/config.json /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json
sudo systemctl start amazon-cloudwatch-agent.service
sudo systemctl status amazon-cloudwatch-agent.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment