← Back to all fixes
Logs not appearing in CloudWatch
The Issue
Your app is running on EC2/ECS but no logs appear in CloudWatch.
Root Cause
CloudWatch agent not installed or configured, IAM role missing `logs:PutLogEvents` permission, or wrong log group name.
How to Fix
For EC2: install and configure the CloudWatch agent — `sudo yum install amazon-cloudwatch-agent`For ECS: add `awslogs` log driver in task definitionCheck IAM role has: `logs:CreateLogGroup`, `logs:CreateLogStream`, `logs:PutLogEvents`Verify the log group exists in the same region as your serviceCheck agent status: `sudo systemctl status amazon-cloudwatch-agent`