简体   繁体   English

是否可以 stream AWS cloudwatch 日志

[英]Is it possible to stream AWS cloudwatch logs

I know its is possible to stream CloudWatch Logs Data to Amazon Elasticsearch Service.我知道 stream CloudWatch 将数据记录到 Amazon Elasticsearch 服务是可能的。 It is documented here , But is it possible to stream the logs data to a custom AWS Glue Job, or to an EMR Job?它记录在这里,但是是否可以将日志数据 stream 到自定义 AWS Glue 作业或 EMR 作业?

The way streaming of CloudWatch Logs (CWLs) to ElasticSearch (ES) works, is that AWS creates a lambda function for you. CloudWatch Logs (CWL) 流式传输到 ElasticSearch (ES) 的方式是 AWS 为您创建lambda function So CWLs will stream to lambda first, and the lambda will then upload the log events to ES.所以CWLs会先从ZF7B44CFFAFD5C52223D5498196C8A2E7BZ到lambda,然后lambda会上传日志事件到ES。

For Glue, you don't need lambda function, as glue can get its streaming data from kinesis streams.对于胶水,您不需要 lambda function,因为胶水可以从运动流中获取其流数据。 So you would have to setup CWL subscription to kinesis stream.因此,您必须设置CWL 订阅 kinesis stream。 The stream would be used as a source in a streaming Glue job. stream 将用作流式胶水作业中的源。

For EMR you could also just stream log events from CWL to kinesis in the same way as for Glue.对于 EMR,您也可以只使用 stream 以与 Glue 相同的方式记录从 CWL 到 kinesis 的事件。 But to read the stream data in EMR, you would probably have to use EMR Input Connector for Kinesis .但要读取 EMR 中的 stream 数据,您可能必须使用EMR Input Connector for Kinesis

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

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