Getting Data In

How to disable a default input?

lksridhar11
New Member

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.

0 Karma
1 Solution

dflodstrom
Builder

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

View solution in original post

arnaudhebert
Engager

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

0 Karma

dflodstrom
Builder

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

lksridhar11
New Member

Thank you very much for quick response.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...