Getting Data In

CLI reload scripted input

EricPartington
Communicator

I have a number of scripted inputs on my linux servers. How do I use the cli to reload that input to update configurations after a script or config has been modified?

./splunk _internal call ...?

I am restarting the entire splunk installation currently and would like to avoid that if possible.

The inputs are also contained inside an app, so if reloading an app is easier then a CLI command to disable and enable an app would also be useful.

Tags (3)
0 Karma
1 Solution

Ayn
Legend

Splunk is running the script as it is each time, so if you modify the script, the changes will take effect the next time Splunk runs it.

View solution in original post

Ayn
Legend

Splunk is running the script as it is each time, so if you modify the script, the changes will take effect the next time Splunk runs it.

Ayn
Legend

Have a look at the CLI command edit. $SPLUNK_HOME/bin/splunk help edit

0 Karma

EricPartington
Communicator

Ok, i had edited the inputs.conf file to change the source value and that wasnt reflected in the output i was seeing on import into splunk.

Is there a way to enable or disable a particular input via CLI?
if disabled=0 for
[script:///app/splunk/etc/apps/lea-cma-o-international/bin/lea-loggrabber.sh]
how do i enable that particular input without using the GUI?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...