Logs generated by Lambda Functions
0
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.
asked 21 days ago24 views
1 Answers
1
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
Relevant questions
How do I keep the time in sync in docker based lambda functions
Accepted Answerasked 5 months ago'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008
asked 5 days agoMy Lambda function is not getting invoked all of a sudden.
asked 3 months agoCan I use CloudWatch Logs to trigger a Lambda function?
Accepted Answerasked 2 years agoWhere are lambda logs?
Accepted AnswerHow can I lock my Lambda function to prevent accidental changes?
Accepted Answerasked 3 years agoAWS Batch Succeeded but no logs generated
asked 5 months agoCloudwatch Log Insights doesn't find logs from the first Lambda Invocation
asked 11 days agoLogs generated by Lambda Functions
asked 21 days agoReusing C# Lambda functions
Accepted Answerasked 2 months ago