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!

Data Management Digest – December 2025

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

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...