Logs from AWS Lambda

Sending logs from AWS Lambda to S3

Lambda functions automatically send their logs to CloudWatch Log Groups. Each function will have its own Log Group.

We therefore need to send the logs from the corresponding CloudWatch Log Group to S3.

How to send Lambda logs to S3?

A. Create the Lambda function (if needed)

B. Create a destination S3 bucket (if needed)

C. Find the Log Group in AWS Console -> CloudWatch -> Log Groups

  • Lambda function log groups are always prefixed by /aws/lambda/

D. Create a Firehose stream and CloudWatch Log Group Subscription Filter

Last updated