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,810 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
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