edenhill / kcat

Generic command line non-JVM Apache Kafka producer and consumer
Other
5.44k stars 483 forks source link

Ranged timestamp queries #177

Open saatvikshah opened 5 years ago

saatvikshah commented 5 years ago

While I noticed that point timestamp queries are possible using the -Q -t <topic:partition:ts> are range queries possible too?

edenhill commented 5 years ago

No, you would have to make two queries.

saatvikshah commented 5 years ago

More than two right? If I have a time range I would need to query <topic:partition:ts_start>, <ts_start+1>...<ts_end> - or is there a shorter way to do this?

edenhill commented 5 years ago

You would only need to query the start time and the end time in two different calls to kafkacat to get the corresponding low and high offsets for that time range, right?