grep functionality inside consumer.subscribe
mac4manu opened this issue · comments
Manu commented
Is your feature request related to a problem? Please describe.
I used below function to subscribe the topic-D, But didn't get intended result. Some values were missing in that response.
await consumer.subscribe({ topics: ['topic-D'], fromBeginning: true })
Then I tried to use kcat
command on terminal to same broker with topic and a grep command 'expected string', then It worked
Describe the solution you'd like
It would helpful if we can extend the .subscribe
function to accept parameter like grep
Additional context
I am following below page
https://kafka.js.org/docs/consuming