本文介绍了流到AWS Lambda时Amazon CloudWatch如何批处理日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
指示多个日志事件记录在从CloudWatch传输日志时将其提供给Lambda。
The AWS documentation indicates that multiple log event records are provided to Lambda when streaming logs from CloudWatch.
CloudWatch如何将这些日志分组?
How does CloudWatch group these logs?
时间?计数?从我的角度来看,是随机的吗?
Time? Count? Randomly, from my perspective?
推荐答案
当前,对于该日志组,CloudWatch Logs收到的每个PutLogEvents批处理都会得到一个Lambda调用。但是,您可能不应该依赖于此,因为AWS可以随时对其进行更改(例如批量处理等等)。
Currently you get one Lambda invocation for every PutLogEvents batch that CloudWatch Logs had received against that log group. However you should probably not rely on that because AWS could always change it (for example batch more, etc).
您可以通过运行。
这篇关于流到AWS Lambda时Amazon CloudWatch如何批处理日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!