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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

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 ...