DEV Community

loading...

Discussion on: Learn how to use Kafkacat – the most versatile Kafka CLI client

Collapse
rmoff profile image
Robin Moffatt

You can also do it using the JSON output and filter it with jq:

kafkacat -b broker:29092 -L -J | \
  jq '.topics[].topic'|
  sort
Enter fullscreen mode Exit fullscreen mode