Cloudwatch error An error occurred InvalidParameterException when calling the GetLogEvents operation

0 votes
Hello,

I'm on this issue since yesterday without any means to understand what's going wrong. I install awscli via pip, setup my credentials, and now I'm able to retrieve my the whole list of logs hosted on Cloudwatch.

But when I try to display logs, I always have the same error:

An error occurred (InvalidParameterException) when calling the GetLogEvents operation: 1 validation error detected: Value 'log-group:testloginstance' at 'logStreamName' failed to satisfy constraint: Member must satisfy regular expression pattern
Aug 27, 2019 in AWS by Harshit
3,328 views
Can you tell the command you're using?
aws logs --debug get-log-events --log-group-name testloginstance --log-stream-name log-group:testloginstance

1 answer to this question.

0 votes

Change your command from:

aws logs --debug get-log-events --log-group-name testloginstance --log-stream-name log-group:testloginstance

To:

aws logs get-log-events --log-group-name testloginstance --log-stream-name testloginstance


Hope this helped!!

To know more about Google Cloud, It is recommended to go for Google Cloud Certification training today.

Thank you!

answered Aug 27, 2019 by Vikas

Related Questions In AWS

0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,090 points
2,591 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP