Skip to content

Troubleshooting kafka topics

If you need to ensure that some data correctly arrive into a topic, an easy way is to use the punchplatform-log-injector.sh tool. It is way easier than setting up some punchline, and will allow you to have a quick look at the content of your data.

For example type in:

punchplatform-log-injector.sh --kafka-consumer -brokers <KAKFA_CLUSTER_NAME> -topic <TOPIC_NAME>

To find the broker name, take a look in the punchplatform.properties file.

To find the list of topics of a specific broker :

punchplatform-kafka-topics.sh --list --kafkaCluster <KAKFA_CLUSTER_NAME>
or
kafkactl --list-topics