Logs Not Reflecting in AWS CloudWatch
Question
Logs were configured to be sent to AWS CloudWatch. However, they are not loading into AWS CloudWatch.
Environment
Logs: AWS CloudWatch
Answer
Make sure that the log group name matches what you have defined in AWS.
Cause
validation error detected: Value 'arn:aws:logs:xxxx:log-group:xxxx:\*' at 'logGroupName' failed to satisfy constraint: Member must satisfy regular expression pattern: \[\\.\\-\_/#A-Za-z0-9\]+
The correct value is as follows (without the asterisk '*'): arn:aws:logs:xxxx:log-group:xxxx
.
NOTE: The log group name should follow the
^[.\-_/#A-Za-z0-9]+$
pattern.