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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...