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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...