Skip to content

Troubleshooting with punchplatform-log-injector

Check a network bandwidth

Sometimes, it's crucial to test a network with an end to end point of view.

On the output, launch a tcp server on port 8080 :

1
$ punchplatform-log-injector.sh --tcp-server 8080

On the input, launch an injection of log :

1
$ punchplatform-log-injector.sh -c apache_httpd_injector.json -t 1000 -p 8080 -H <DESTINATION_IP>

Read a topic from kafka

To check the output of a processing worker without introducing a print(root) in a punch, it is useful to read a kafka topic

1
$ 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 :

1
$ punchplatform-kafka-topics.sh --list --kafkaCluster <KAKFA_CLUSTER_NAME>