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 in AWS by Harshit
51 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
answered Aug 27 by Vikas

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer