Getting Data In

How to turn off logging from a particular host when a server is decomissioned?

Kaushikkatta03
Explorer

As one of our servers is decommissioned, we need to turn off the logging from that particular host. Please kindly help us in doing this.

Tags (2)
0 Karma
1 Solution

inventsekar
SplunkTrust
SplunkTrust

for temporary turn off the data logging from a particular host, we can turn off the splunk process -
$SPLUNK_HOME/splunk stop

as host is decommissioned, you can uninstall the universal forwarder

  1. If you configured the universal forwarder to start on boot, remove it from your boot scripts before you uninstall.
    cd $SPLUNK_HOME
    ./splunk disable boot-start

  2. Stop the forwarder.
    ./splunk stop

  3. Uninstall the universal forwarder with your package management utilities
    RedHat Linux
    rpm -e splunk_product_name

Debian Linux
dpkg -r splunkforwarder

https://docs.splunk.com/Documentation/Forwarder/6.4.3/Forwarder/Uninstalltheuniversalforwarder

View solution in original post

somesoni2
Revered Legend

One option would to be blacklist the host serverclass.conf on Deployment server so that it doesn't receive any data input configuration and doesn't monitor/logs any data. The decommissioning should take care of the un-install anyways.

0 Karma

inventsekar
SplunkTrust
SplunkTrust

for temporary turn off the data logging from a particular host, we can turn off the splunk process -
$SPLUNK_HOME/splunk stop

as host is decommissioned, you can uninstall the universal forwarder

  1. If you configured the universal forwarder to start on boot, remove it from your boot scripts before you uninstall.
    cd $SPLUNK_HOME
    ./splunk disable boot-start

  2. Stop the forwarder.
    ./splunk stop

  3. Uninstall the universal forwarder with your package management utilities
    RedHat Linux
    rpm -e splunk_product_name

Debian Linux
dpkg -r splunkforwarder

https://docs.splunk.com/Documentation/Forwarder/6.4.3/Forwarder/Uninstalltheuniversalforwarder

Kaushikkatta03
Explorer

Thanks I did it . logging stopped

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

Stop Splunk running on the server.

0 Karma
Get Updates on the Splunk Community!

Monitoring Postgres with OpenTelemetry

Behind every business-critical application, you’ll find databases. These behind-the-scenes stores power ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...