kafkacat -b localhost:9092 \
-t _kafka-connect-group-01-status \
-C \
-o-3 \
-c3 \
-f 'Topic %t / Partition %p / Offset: %o / Timestamp: %T\nHeaders: %h\nKey (%K bytes): %k\nPayload (%S bytes): %s\n--\n'
Where:
|
Broker address |
|
Topic name |
|
Run as a consumer ( |
|
From offset ( |
|
Consume three messages and exit (omit this to continue displaying new messages) |
|
Optional format string to display rich information about the message and its metadata. Useful when starting to poke around topic structures :) |