- Newest
- Most votes
- Most comments
The discrepancy you're experiencing between the AWS CLI output and the CloudWatch console view is unusual and could be due to a few potential issues:
-
Region mismatch: Ensure that you're looking at the same AWS region in both the CLI and the console. The CLI might be set to a different default region than what you're viewing in the console.
-
IAM permissions: While you're signing in as the root user, which should have full access, there might be an issue with the IAM permissions associated with your console session. This is less likely but worth checking.
-
Console caching or display issue: Sometimes, the AWS Management Console can have caching issues or display problems. Try clearing your browser cache and cookies, or use a different browser to access the AWS Console.
-
Filtering applied: Check if there are any filters applied in the CloudWatch console that might be hiding your log groups.
-
Delay in console updates: Although rare, there could be a delay in the console updating to reflect the latest information.
To troubleshoot:
- Verify the region in both CLI and console.
- Try accessing the CloudWatch logs directly through the CloudWatch service in the console, not via Lambda.
- Use the CLI command with the '--region' parameter to explicitly specify the region and compare results.
- Try creating a new log group via CLI and see if it appears in the console.
- If the issue persists, it would be advisable to contact AWS Support, as this appears to be an unusual console behavior, especially if it has been ongoing for months.
Sources
Use DescribeLogGroups with an AWS SDK or CLI - Amazon CloudWatch Logs
Working with log groups and log streams - Amazon CloudWatch Logs
Use DescribeLogGroups with an AWS SDK or CLI - AWS SDK Code Examples
Relevant content
- Accepted Answerasked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 10 months ago
Thanks.
Is not the issue - in both the CLI and AWS console I'm using us-east-1
Is not the issue - When I go direct to the CloudWatch console I get "no log groups"
is not the issue - When I use the --region option with the CLI my log groups are returned
is not the issue - I created "dummy-log-group" using the CLI and I still get "no log groups" in the console - even if this worked this would be a problem as I need to view my log groups that have already been created
This re:post is my attempt to contact AWS Support
Any way to get additional support on this since the answer did not solve the issue for me?