简体   繁体   English

如何自动将AWS CloudWatch日志发送到AWS Redshift

[英]How to send AWS cloudwatch logs to AWS redshift automatically

I am new to AWS. 我是AWS的新手。 My requirement is, I need to send AWS cloudwatch logs automatically to AWS redshift. 我的要求是,我需要将AWS cloudwatch日志自动发送到AWS redshift。 Is it possible throught Lambda script? Lambda脚本是否可能? 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. 按照此处所述创建一个cloudwatch事件规则: https ://docs.aws.amazon.com/AmazonCloudWatch/latest/events/Create-CloudWatch-Events-Rule.html在目标上,您不能直接选择Redshift,因此首先必须将您的日志发送到lambda,然后使用一些逻辑将其加载到redshift。 My recomendation is this case would be doing this operation through Kinesis Firehose and S3. 我的建议是这种情况将通过Kinesis Firehose和S3进行。

The data flow would look like this: Cloudwatch Events Rule > Lambda > Firehose > S3 > Redshift. 数据流如下所示:Cloudwatch事件规则> Lambda> Firehose> S3> Redshift。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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