title: How to check the retention period for a topic in Kafka?
body: <p>I like to know how to get the retention period for Kafka topics.
  Our Kafka Cluster's default retention is seven days i.e. log.retention.hours=168
  But for some topics it is configured with custom retention period like 3 days.</p>
  
  <p>Kafka version is 0.10.0.1 and I tried below command it is not giving retention period details.</p>
  
  <pre><code>/bin/kafka-topics.sh -zookeeper localhost:2181 --describe --topic &lt;topic-name&gt;
  
  displayed below output without retention details. 
  --------------------------------------------------
  Topic:&lt;topic-name&gt; PartitionCount:50       ReplicationFactor:2     Configs:
  Topic: &lt;topic-name&gt;       Partition: 0    Leader: 7       Replicas: 7,22  Isr: 7,22
  </code></pre>
  
  <p>Thanks in advance!</p>