Amazon CloudWatch: How to find ARN of CloudWatch Log group

Gleb picture Gleb · May 10, 2018 · Viewed 15.2k times · Source

I configure Custom Access Logging for Amazon API Gateway and I need to specify CloudWatch Group name, but when I put these just name of log group in format like "API-Gateway-Execution-Logs_3j5w5m7kv9/stage-name" I get such error:

Invalid ARN specified in the request. ARNs must start with 'arn:': API-Gateway-Execution-Logs_3j5w5m7kv9/stage-name

When I open page of this log group in CloudWatch I just see the same name there and don't see ARN value. How can I find it?

Answer

jny picture jny · May 10, 2018

Go to Cloudwatch logs, find your log group, open it and you'll see a list of log streams. There is settings icon on top right: enter image description here

Click it and you'll see an option to show stream arn:

enter image description here

Save the settings and you'll see stream arns. The part before semicolon looks like Log Group arn