Reputation: 51
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?
Upvotes: 1
Views: 4508
Reputation: 846
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.
Upvotes: 2