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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...