Install Splunk Connect for Kafka
To install Splunk Connect for Kafka, perform the following steps:
- Navigate to the Splunk Connect for Kafka repository on github and download the latest
splunk-kafka-connect-[VERSION].jarrelease. - Start your Kafka Cluster and confirm it is running.
curl http://<KAFKA_CONNECT_HOSTNAME>:<KAFKA_CONNECT_PORT>. For example,curl http://localhost:8083 - (Optional) Create a directory to store your Kafka Connect connectors. This will be used for your
plugin.pathsetting. - Navigate to your
/$KAFKA_HOME/config/directory. - Modify the
connect-distributed.propertiesfile to include the below information:#Required configurations for Splunk Connect for Kafka bootstrap.servers=<BOOTSTRAP_SERVER1,BOOTSTRAP_SERVER2,BOOTSTRAP_SERVER3 > plugin.path=<PLUGIN_PATH> key.converter=<org.apache.kafka.connect.storage.StringConverter|org.apache.kafka.connect.json.JsonConverter|io.confluent.connect.avro.AvroConverter> value.converter=<org.apache.kafka.connect.storage.StringConverter|org.apache.kafka.connect.json.JsonConverter|io.confluent.connect.avro.AvroConverter> - Place the Splunk Connect for Kafka jar file in the
plugin.pathdirectory for all Kafka Connect hosts. - Restart your deployment's Kafka Connect services.
- Run
./bin/connect-distributed.sh config/connect-distributed.propertiesto start Kafka Connect. - If this is a new install, create a test topic (for example,
perf), and inject events into the topic using the Kafka data-gen-app or the kafka-console-producer. - Run the following command to confirm that Splunk Connect for Kafka has been installed and configured correctly.
curl http://localhost:8083/connector-pluginsThe command will return a list of the available connectors. Splunk Connect for Kafka is available if the returned list of available connectors containscom.splunk.kafka.connect.SplunkSinkConnector.Note: $KAFKA_HOME is the home directory where your Kafka Connect deployment is located. This could be the same as your Kafka home directory if you are running on a shared system.
Splunk Connect for Kafka commands
Use the following commands to check the status of Splunk Connect for Kafka, to manage connectors, and to manage tasks:
| Description | Command |
|---|---|
| List active connectors |
|
| Get kafka-connect-splunk connector information |
|
| Get kafka-connect-splunk connector configuration information |
|
| Delete kafka-connect-splunk connector |
|
| Get kafka-connect-splunk connector task information |
|
| Pause kafka-connect-splunk workers |
|
See the Confluent documentation for additional REST examples.