Getting Data In

./splunk disable app SplunkUniversalForwarder --> How does this work?

sarnagar
Contributor

Hi All,

I have Splunk universal forwarder installed on my hosts. I want to disable this host from sending any data to the indexer and I do not want it to respond to any of the scheduled searches or alerts. How do I get this done? Kindly help.

Also what does the below command do?
./splunk disable app SplunkUniversalForwarder

0 Karma

grijhwani
Motivator

That depends on what platform you are running on. (You don't specify.)

On a *ix (e.g. Linux) it is as simple as disabling the service and then stopping id.

sudo /etc/init.d/splunk stop
sudo ~splunk/bin/splunk disable boot-start

I imagine on Windows it is similar (stop the service, with the Windows interface, then get Splunk to do the boot-start disable).

0 Karma

andrewpappas
Engager

Should be:
sudo ~splunk/bin/splunk disable boot-start

grijhwani
Motivator

Indeed it should - duly corrected.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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