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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...