Getting Data In

Is there a CLI option in Splunk 6.1.4 to disable / enable REST data input?

jasonhebron
New Member

We are running SPLUNK 6.1.4.
We have a server with a REST API feed which every so often stops processing. To start it again, we go to the console and disable/enable it and it works ok after that.
Is there a CLI option to perform a disable/enable of a CLI feed?
Thanks

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi jasonhebron,

this example is using the web monitor app and shows how to disable and enable the modular input used by this app.
To disable this input you can POST this request to Splunk REST API:

 curl -X POST -k -u admin:changeme https://localhost:8089//servicesNS/nobody/website_monitoring/data/inputs/web_ping/Answers/disable

This will disable the web monitor for the Answers stanza.

curl -X POST -k -u admin:changeme https://localhost:8089//servicesNS/nobody/website_monitoring/data/inputs/web_ping/Answers/enable

And this will enable it again.

Hope this helps ...

cheers, MuS

View solution in original post

MuS
SplunkTrust
SplunkTrust

Hi jasonhebron,

this example is using the web monitor app and shows how to disable and enable the modular input used by this app.
To disable this input you can POST this request to Splunk REST API:

 curl -X POST -k -u admin:changeme https://localhost:8089//servicesNS/nobody/website_monitoring/data/inputs/web_ping/Answers/disable

This will disable the web monitor for the Answers stanza.

curl -X POST -k -u admin:changeme https://localhost:8089//servicesNS/nobody/website_monitoring/data/inputs/web_ping/Answers/enable

And this will enable it again.

Hope this helps ...

cheers, MuS

Get Updates on the Splunk Community!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...