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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...