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!

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...