# How can I print the timestamp with kafka-avro-console-consumer

**URL:** <https://forum.confluent.io/t/how-can-i-print-the-timestamp-with-kafka-avro-console-consumer/9341>\
**Category:** Confluent Cloud\
**Created:** [6 December 2023 17:14 UTC](https://forum.confluent.io/t/how-can-i-print-the-timestamp-with-kafka-avro-console-consumer/9341 "2023-12-06T17:14:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrenikjain](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@shrenikjain](https://forum.confluent.io/u/shrenikjain)\
**Post date:** [6 December 2023 17:14 UTC](https://forum.confluent.io/t/how-can-i-print-the-timestamp-with-kafka-avro-console-consumer/9341/1 "2023-12-06T17:14:11Z")

</div>

I am able to print the time stamp with kafka-console-consumer using --property print.timestamp=true. But, this does not work with kafka-avro-console-consumer

please help me here

Thanks  
Shrenik

---

<div class="post-metadata">

**Author:** ![dtroiano](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/dtroiano/32/1961_2.png) [@dtroiano](https://forum.confluent.io/u/dtroiano)\
**Post date:** [7 December 2023 13:46 UTC](https://forum.confluent.io/t/how-can-i-print-the-timestamp-with-kafka-avro-console-consumer/9341/2 "2023-12-07T13:46:19Z")

</div>

I’m not able to repro this. If I follow [this](https://developer.confluent.io/tutorials/kafka-console-consumer-producer-avro/kafka.html) tutorial and append `--property print.timestamp=true` to the `kafka-avro-console-consumer` command, I see output prepended with timestamps like `CreateTime:1701955706710`. I’d suggest running through this tutorial to confirm it also works on your end, and then compare its setup with yours.

You might also verify that you can see timestamps with [`kcat`](https://docs.confluent.io/platform/current/tools/kafkacat-usage.html). You can print the message timestamp and Avro-formatted value like this:

```plaintext
kcat -b <bootstrap server> \
    -r <schema registry URL> \
    -t <topic> \
    -s value=avro \
    -f 'Timestamp: %T, Message value: %s\n'

```

---

<div class="post-metadata">

**Author:** ![shrenikjain](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@shrenikjain](https://forum.confluent.io/u/shrenikjain)\
**Post date:** [8 December 2023 05:33 UTC](https://forum.confluent.io/t/how-can-i-print-the-timestamp-with-kafka-avro-console-consumer/9341/3 "2023-12-08T05:33:42Z")

</div>

thanks @dtroiano will try this
