[英]How do I export aws lambda logs(Prints) to Kinesis Data Streams?
I have been Stocked on how to send Lambda logs(Prints) directly to Amazon Kinesis Data Stream.
我已经了解如何将 Lambda 日志(打印)直接发送到 Amazon Kinesis Data Stream。 I have Found the way to send Logs from Cloud watch but I would like to send every single prints to kinesis data streams.
我找到了从 Cloud watch 发送日志的方法,但我想将每一个打印件发送到 kinesis 数据流。 I have a doubt if I send data from cloud watch does it stream real time prints records to kinesis or not?
我怀疑我是否从云手表发送数据 stream 是否实时打印记录到 kinesis? On this case I would like to use lambda as producer and through the kinesis data S3 as a consumer.
在这种情况下,我想使用 lambda 作为生产者,并通过运动数据 S3 作为消费者。
below I have attached a flow work of my conditions.下面我附上了我的条件的流程工作。
You have to create CouldWatch Subscription filter for the Lambda's log stream you want to save to S3.您必须为要保存到 S3 的 Lambda 日志 stream 创建CouldWatch 订阅过滤器。 So you would do:
所以你会这样做:
CW Logs subscription ---> Firehose ---> S3
You can also check the lambda extensions, which helps into direct ingestion of the logs to custom destinations.您还可以检查 lambda 扩展,这有助于将日志直接摄取到自定义目标。 Its helpful incase you want to avoid cloudwatch costs
如果您想避免 cloudwatch 成本,它会很有帮助
https://aws.amazon.com/blogs/compute/using-aws-lambda-extensions-to-send-logs-to-custom-destinations/ https://aws.amazon.com/blogs/compute/using-aws-lambda-extensions-to-send-logs-to-custom-destinations/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.