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!

Observability Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestSplunk APM's New Tag Filter ExperienceSplunk APM has updated ...

Security Newsletter Updates | March 2023

 March 2023 | Check out the latest and greatestUnify Your Security Operations with Splunk Mission Control The ...

Platform Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestIntroducing Splunk Edge Processor, simplified data ...