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.

1 réponse
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
EXPERT
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions