Hi Folks,
we have customized app in our environment and in the app we have inputs.conf file under the default folder. It is sending the data to the indexer based the on inputs.conf file, now we don't want to monitor the particular source on inputs.conf file. Shall I edit and blacklist source on the file to stop the monitoring? I know we should not edit the file in default folder but I want to disable the source file.
Could you suggest me on this.
Define the same input stanza in inputs.conf in a local folder and set it to disabled. You can create this in $SPLUNK_HOME/etc/your_app/local/inputs.conf or $SPLUNK_HOME/etc/ystem/local/inputs.conf.
[monitor stanza name]
disabled = true
Let's say I am building an app with a python script inside the bin folder.
I want my script to only run once (at the very first startup at never again).
If I restart, I don't want the script to run again. How would I go about to do that?
inputs.conf
interval = -1
this is running my script at each startup so this is not what I want.
schedule doesn't seem to be what I want either.
Should my python script update the inputs.conf from disable = false to disable = true? that's sounds awful
Define the same input stanza in inputs.conf in a local folder and set it to disabled. You can create this in $SPLUNK_HOME/etc/your_app/local/inputs.conf or $SPLUNK_HOME/etc/ystem/local/inputs.conf.
[monitor stanza name]
disabled = true
Thank you very much for quick response.