There is a method listOffset in KafkaAdmin API from 2.5.0 version. This method can return offset by timestamp.
listOffset
/** * Used to retrieve the the earlie