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.

已提問 2 年前檢視次數 292 次
1 個回答
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
profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南