what command to use if I want to consume messages between two specific dates like 20 Feb 00:00:00 and 22 Feb 00:00:00 from a Kafka topic ?
All I know is that there is consumer groups command in which we can give "--to-datetime" ,"--by-duration" etc.
bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092
--group test-group --reset-offsets --all-topics --to-datetime 2021-02-20T00:00:00.000
But how can I stop that consumer group when it reaches a particular datetime (2021-02-22T00:00:00.000)?
Thanks.