FWIW kafkacat will do this no sweat (I realise that doesn't help w.r.t. the tool you're trying to use, but mentioning it in case :) )
kafkacat -b kafka-broker:9092 \ -t my_topic_name -C \ -f '\nKey (%K bytes): %k Value (%S bytes): %s Timestamp: %T Partition: %p Offset: %o Headers: %h\n' -- Robin Moffatt | Senior Developer Advocate | ro...@confluent.io | @rmoff On Wed, 10 Feb 2021 at 17:59, Rovere Lorenzo <l.rov...@reply.it> wrote: > Hi > > > > We are on Kafka version: 2.2.1-kafka-4.1.0 > > We have some issues when trying to dump some messages from a topic. > > Topic describe: Topic:test PartitionCount:3 > ReplicationFactor:2 Configs:message.timestamp.type=LogAppendTime > > > > Using the kafka-console-consumer I want to print the timestamp and the > partition besides the content of the topic, so I specified --property > print.partition=true --property print.timestamp=true in the > kafka-console-consumer.sh but I only get the timestamp. The partition field > is always empty. Any reason why this would happen? Thanks > > > > Lorenzo Rovere > > > > > Lorenzo Rovere > > Technology Reply > Via Avogadri, 2 > 31057 - Silea (TV) - ITALY > phone: +39 0422 1836521 > l.rov...@reply.it > www.reply.it > > [image: Technology Reply] >