All Apps and Add-ons

Splunk connect for Kafka Issue - failed to send batch SplunkSinkTask

Path Finder

I have tried connecting with Splunk connect for Kakfa in multiple scenarios, where i'm keep on receiving the error as below and I'm not receiving the data to Splunk Indexers. I have an intermediate forwarder between Kafka server and Splunk indexer. I have tried sending a test message from Kafka server using the HEC token which is generated on HF. It works totally fine and I'm receiving the data to indexer. But, when I'm using curl command as per docs i'm not receiving the data. Could you please advise:

ERROR failed to send batch (com.splunk.kafka.connect.SplunkSinkTask:261)
java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: :8088/services/collector/raw?index=kafka_connect
at java.base/
at org.apache.http.client.methods.HttpPost.(
at com.splunk.hecclient.Indexer.send(
at com.splunk.hecclient.HecChannel.send(
at com.splunk.hecclient.LoadBalancer.send(
at com.splunk.hecclient.Hec.send(
at com.splunk.kafka.connect.SplunkSinkTask.send(
at com.splunk.kafka.connect.SplunkSinkTask.handleFailedBatches(
at com.splunk.kafka.connect.SplunkSinkTask.put(
at org.apache.kafka.connect.runtime.WorkerSinkTask.deliverMessages(
at org.apache.kafka.connect.runtime.WorkerSinkTask.poll(
at org.apache.kafka.connect.runtime.WorkerSinkTask.iteration(
at org.apache.kafka.connect.runtime.WorkerSinkTask.execute(
at org.apache.kafka.connect.runtime.WorkerTask.doRun(
at java.base/java.util.concurrent.Executors$
at java.base/
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at java.base/
Caused by: Illegal character in scheme name at index 0:
at java.base/$
at java.base/$Parser.checkChars(
at java.base/$Parser.checkChar(
at java.base/$Parser.parse(
at java.base/
at java.base/
... 19 more
[2018-11-18 00:45:35,596] INFO handled 1 failed batches with 2 events (com.splunk.kafka.connect.SplunkSinkTask:130)

0 Karma
Get Updates on the Splunk Community!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...