简体   繁体   English

AWS CloudWatch 日志到 Kafka

[英]AWS CloudWatch Logs to Kafka

I want to push AWS CloudWatch Logs to Kafka and trying to find out the best architecture to achieve this.我想将 AWS CloudWatch Logs 推送到 Kafka,并尝试找出实现这一目标的最佳架构。

One approach I was thinking of is to -> Subscribe to log group events on cloud watch by selecting log group and clicking on Action ->Stream to AWS Lambda and select the lambda that will stream data to Kafka. One approach I was thinking of is to -> Subscribe to log group events on cloud watch by selecting log group and clicking on Action ->Stream to AWS Lambda and select the lambda that will stream data to Kafka.

So I might have to write some Java/Python function to write logs to Kafka from Lambda.所以我可能需要编写一些 Java/Python function 来将日志从 Lambda 写入 Kafka。 However, I am not sure whether this is the right design.但是,我不确定这是否是正确的设计。

Have you considered using CloudWatch Logs Source Connector for Kafka Connect?您是否考虑过为 Kafka Connect 使用CloudWatch Logs 源连接器 It should be pretty straightforward to use and doesn't require any code writing (unfortunately, I only used jdbc connectors so I can't tell for sure how hard it is to configure it).它使用起来应该非常简单,不需要任何代码编写(不幸的是,我只使用了 jdbc 连接器,所以我无法确定配置它有多难)。

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

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