跳至内容

Lambda filter criteria for Apache kafka ESM

0

I have a lambda with Apache kafka ESM and I will get a json data from the Kafka. I need to filter criteria for this json look like {"third-party":"yes","foo":"bar"} When the incoming json has third-party I need to ignore that record that record need not invoke lamba and when the key itself not there that record need to invoke the lambda so give the filter pattern for this scenario

已提问 9 个月前131 查看次数

1 回答
0

You can achieve this with an event source mapping filter pattern that excludes records containing "third-party":"yes" and allows records where the key is absent. The filter pattern should check the value field of the Kafka message (since Lambda filtering for Kafka only supports the value key) and use a not-equals condition.

专家

已回答 9 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。