Re: How to read messages from Kafka by specific time?

2015-08-11 Thread shahab
Thanks Ewen for the clarification. I will test this. best, /Shahab On Mon, Aug 10, 2015 at 9:03 PM, Ewen Cheslack-Postava e...@confluent.io wrote: You can use SimpleConsumer.getOffsetsBefore to get a list of offsets before a Unix timestamp. However, this isn't per-message. The offests

Re: How to read messages from Kafka by specific time?

2015-08-10 Thread Ewen Cheslack-Postava
You can use SimpleConsumer.getOffsetsBefore to get a list of offsets before a Unix timestamp. However, this isn't per-message. The offests returned are for the log segments stored on the broker, so the granularity will depend on your log rolling settings. -Ewen On Wed, Aug 5, 2015 at 2:11 AM,