I want to search specific messages in kafka topic,
The only solution that I found is using grep
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning |grep 'world\|hello'
- Is there an efficient way do do it ?
- Is there a way that I can limit the consumer with a specific offset, meaning reading from the beginning until in reaches specific offset ?