title: How to get last 5 days messages from Kafka using Java
body: <p>I have set TTL for a topic in Kafka as 7 days, I am getting data from <code>Kafka</code> and storing it in DB, but from last 5 days My DB server was down, now I have to fetch last 5 days messages from <code>Kafka</code> and store them in DB
  Note: From last 5 days there is no problem with <code>Kafka</code>. </p>