Automation of Export logs from CloudWatch to S3 bucket in a time interval Automation of Export logs from CloudWatch to S3 bucket in a time interval powershell powershell

Automation of Export logs from CloudWatch to S3 bucket in a time interval


There are a couple ways to do this.

  1. Stream logs directly to S3 Using CloudWatch Logs Subscription Filters
  2. Use a CloudWatch Scheduled event to schedule a Lambda function to run a log export to S3. Here's a quick tutorial (Export Log Data to Amazon S3 Using the AWS CLI) on how to do it using the CLI but the command should be similar for Boto3 within Lambda.