0

I have only programmatic access to AWS cloud watch and other services. I created a lambda and event source mapping with DynamoDB. It uploaded and ran successfully but I don't know which log group is it logging. Is there a way through the CLI to check which log group a lambda is configured with?

miserable
  • 697
  • 1
  • 12
  • 31
  • Does this answer your question? [AWS Lambda Logs using AWSCLI: How can I access Lambda logs using AWSCLI?](https://stackoverflow.com/questions/49794781/aws-lambda-logs-using-awscli-how-can-i-access-lambda-logs-using-awscli) – jellycsc May 06 '20 at 20:53
  • Thanks. It partially does. There are 10 different log groups. How do I know in which log group my logs are going? – miserable May 06 '20 at 21:52
  • The log group is named `/aws/lambda/`. https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs.html – jellycsc May 06 '20 at 21:57
  • I created a new function and I don't see a log group for this new function. I do see for all other functions. – miserable May 06 '20 at 21:59
  • The log group will only be created after you make at least one invocation of that function. – jellycsc May 06 '20 at 22:02
  • I did invoke a few. – miserable May 06 '20 at 22:04
  • Could you post the policies attached to the execution role of this particular lambda function? I suspect it may not have permission to push logs to cloudwatch. – jellycsc May 06 '20 at 22:08
  • Can you please tell me how do I check through CLI? – miserable May 06 '20 at 22:09

0 Answers0