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
Follow these instructions: Logs from other AWS Services: CloudWatch -> Firehose -> S3.
An AWS Data Firehose buffers and delivers data to an S3 bucket. A CloudWatch Log Group Subscription Filter automatically sends new log events to the Firehose stream.
PreviousLogs from AWS Elastic Container Service (ECS)NextLogs from other AWS Services: CloudWatch -> Firehose -> S3
Last updated