[英]sending and receiving logs to aws kinesis
How can I send (receive) logs to (from) different kinesis stream shards using python boto3? 如何使用python boto3将日志发送到不同的kinesis流分片(从中接收)? I can send and receive when there is only one shard but can not figure out how will it work if I specify multiple shards for my kinesis stream.
当只有一个分片时,我可以发送和接收,但是如果我为运动流指定了多个分片,我将无法弄清楚它如何工作。
You can use kinesis-agent library to push logs to kinesis streams, and use the KCL python library to read records from the stream. 您可以使用kinesis-agent库将日志推送到kinesis流,并使用KCL python库从流中读取记录。 The KCL handles loads of stuff such as reading parallelly from multiple shards, resharding, etc.
KCL处理负载,例如从多个分片并行读取,重新分片等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.