All Apps and Add-ons

Splunk Kafka Connector Curl Statement: How to list connectors

Anmar0293
Path Finder

I have applied the curl statement to create a Splunk Kafka connector which is working, but how do I list all the connectors who are running at the moment?
For example, this curl connector's name is "test" but I have 4 others and I forgot the names.

How do I list them, and stop them or activate them if I don't know the names?

curl localhost:8083/connectors -X POST -H "Content-Type: application/json" -d '{
    "name": "test",
    "config": {
      "connector.class": "com.splunk.kafka.connect.SplunkSinkConnector",
      "tasks.max": "3",
      "splunk.indexes": "test",
      "splunk.sources": "test",
      "topics":"cisco-jtapi",
      "splunk.hec.uri": "HTTP:8088",
      "splunk.hec.token": "DUMMY TOPIC",
      "splunk.hec.raw": "false",
      "splunk.hec.ack.enabled":"false",
      "splunk.hec.ssl.validate.certs": "false",
      "splunk.hec.json.event.formatted": "true"
    }
  }'
0 Karma
1 Solution

Anmar0293
Path Finder

I figured it out:

curl http://localhost:8083/connectors/

will list all the active connectors!

View solution in original post

0 Karma

Anmar0293
Path Finder

I figured it out:

curl http://localhost:8083/connectors/

will list all the active connectors!

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...