- Newest
- Most votes
- Most comments
The error "The specified log group does not exist" typically occurs when CloudWatch is trying to write logs to a log group that hasn't been created yet. Here are some steps to troubleshoot and resolve this issue:
-
Check if you're looking in the correct AWS region in the CloudWatch console. Log groups are region-specific, so ensure you're in the same region where your Lambda function is deployed.
-
Verify that your Lambda function has been executed at least once. Log groups are typically created only after the first execution of a Lambda function.
-
Ensure that the IAM role associated with your Lambda function has the necessary permissions for CloudWatch Logs, including permissions to create log groups, create log streams, and put log events.
-
If the log group still doesn't appear, you can try creating it manually in the CloudWatch console. For Lambda functions, the log group naming convention is "/aws/lambda/[your-function-name]".
-
If you're using a custom log group name, make sure to set the "awslogs-create-group" parameter to "True" in your configuration.
-
Check for any filters applied in the CloudWatch console that might be hiding your log groups.
-
Try refreshing the CloudWatch console page or clearing your browser cache.
-
If you can access the AWS CLI, run the command
aws logs describe-log-groupsto see if your log group appears there but not in the console.
If after trying these steps you still encounter the issue, it might be worth contacting AWS Support for further assistance, as there could be an underlying issue specific to your account or setup.
Sources
Log Groups not found | AWS re:Post
CloudWatch no log groups | AWS re:Post
Monitor CloudWatch Logs for Amazon ECS | AWS re:Post
UntagLogGroup - Amazon CloudWatch Logs
Hello.
Lambda cannot output logs to CloudWatch Logs even if only "S3fullacess" is configured.
If the IAM policy for outputting to CloudWatch Logs is not set, try setting "AWSLambdaBasicExecutionRole" as the Lambda IAM role.
https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AWSLambdaBasicExecutionRole.html
Relevant content
asked 3 years ago
