简体   繁体   中英

How to send AWS cloudwatch logs to AWS redshift automatically

I am new to AWS. My requirement is, I need to send AWS cloudwatch logs automatically to AWS redshift. Is it possible throught Lambda script? Is there any other option available for this?

Create a cloudwatch event rule as documented here: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/Create-CloudWatch-Events-Rule.html At the target you can't choose Redshift directly, so first you have to send your logs to a lambda and then use some logic to load it to redshift. My recomendation is this case would be doing this operation through Kinesis Firehose and S3.

The data flow would look like this: Cloudwatch Events Rule > Lambda > Firehose > S3 > Redshift.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM