AWS Cloud Watch

What logs should I look into for troubleshooting?

The agent installation log is at /var/log/awslogs-agent-setup.log
The agent log is at /var/log/awslogs.log


Make sure AWS configuration is configured on the running instance. It is not configured If you see the below error:


ClientError: An error occurred (AccessDeniedException) when calling the PutLogEvents operation: User: arn:aws:sts::978218355654:assumed-role/CW_Access/i-54545 is not authorized to perform: logs:PutLogEvents on resource: arn:aws:logs:us-east-1:978218355654:log-group:/var/log/messages:log-stream:i-54545


Create log groups and log streams as per your log target to push the events on cloud watch. 

By default log agent sends  /var/log/messages file to Cloud watch. 

0 comments:

My Instagram