Ref: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html
sudo yum update -y
sudo yum install -y awslogs
Edit /etc/awslogs/awslogs.conf
sudo service awslogs start
sudo systemctl start awslogsd
Check the agent log : /var/log/awslogs.log
Login to EC2 instance using putty

Start

check the cloudwatch log

sudo yum update -y
sudo yum install -y awslogs
Edit /etc/awslogs/awslogs.conf
sudo service awslogs start
sudo systemctl start awslogsd
Check the agent log : /var/log/awslogs.log
Login to EC2 instance using putty
Start
check the cloudwatch log
No comments:
Post a Comment