How can we access parameters of a particular input from inputs.conf file so that we can disable that input after its first run or in case of any use case.
See the API docs https://docs.splunk.com/Documentation/Splunk/9.0.4/RESTREF/RESTinput#data.2Finputs.2Fad and subsequent entries.
Hello, @Snehalg176
You can use splunklib.client — Splunk SDK for Python API Reference - specifically splunklib.client.Input.disable method. Another option is to use Splunk REST API, which previous method uses behind the scenes.
Hi @dauren_akilbeko ,
Do you have some sample code to share on how can I implement it ?
Is there a chance to disable an input using python in Splunk add-on builder. If yes, how can we achieve it?