Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get last modified date of a Kafka topic

Tags:

apache-kafka

I know that is possible to get the latest offset of a kafka but is it possible to get the timestamp of the last change of a kafka topic via the kafka console scripts ?

I saw this question Kafka: How to get last modified time for a topic i.e. last message added to any partition of the topic but with no real answer to my question.

like image 768
Misterx45678 Avatar asked Dec 24 '22 02:12

Misterx45678


1 Answers

Add this to the current command --property print.timestamp=true That will print the timestamp CreateTime:1544706749268.

like image 172
Sreekiran A R Avatar answered Feb 01 '23 00:02

Sreekiran A R