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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...