title: Kafka: How to get last modified time for a topic i.e. last message added to any partition of the topic
body: <p>Our use case is to delete stale/unused topics from kafka i.e. if a topic (on all partitions) doesn't have any new message in last 7 days then we would consider it as stale/unused and delete it.</p>
  
  <p>Many google results suggested to add timestamp to messages and then parse it. For new topics &amp; messages that soultion would work but our existing topics &amp; messages doesn't have any timestamp in them.</p>
  
  <p>How can I get this working ?. </p>