By using AWS re:Post, you agree to the Terms of Use
/Logs generated by Lambda Functions/

Logs generated by Lambda Functions


How can I check the amount of logs generated by the Lambda function? I need to find the functions that are generating logs more than or equal to 500 MB.

1 Answers

You can query the CloudWatch Logs API and see how much storage each log group is consuming: aws logs describe-log-groups

For each log group the output will look like:

"logGroupName": "/aws/lambda/FunctionName",
"creationTime": 1573030762692,
"metricFilterCount": 0,
"arn": "arn:aws:logs:region:accountnumber:log-group:/aws/lambda/FunctionName:*",
"storedBytes": 148153072
answered 21 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions