Documentation: 3.1.5
Print Version Contents
This page last updated: 11/20/07 04:11pm

Uninstall Splunk

Use your local package management commands to uninstall Splunk. In most cases, files not originally installed by the package will be retained. This usually means your configuration and index files, which are under the same directory (default /opt/splunk) as the rest of the installation by default.

RedHat Linux

# rpm --e splunk-2.1-0

Debian Linux

# dpkg -r splunk

Solaris

# pkgrm splunk

FreeBSD

# pkg_delete splunk

In most cases, files not originally installed by the rpm package will be retained. This usually means the configuration and index files, which are under the same directory (default ///opt/splunk) as the rest of the installation by default.

Manual uninstall

If you can't use package management commands, these commands will remove the installed components except for any init scripts that have been created.

  1. First, find and kill any process with "splunk" in its name.
    • For Linux and Solaris: kill -9 `ps -ef | grep splunk | grep -v grep | awk '{print $2;}'`
    • For FreeBSD and Mac OS: kill -9 `ps ax | grep splunk | grep -v grep | awk '{print $1;}'`
  2. rm -rf /opt/splunk (or wherever you installed Splunk)
  3. rm -rf /opt/splunkdata (if a datastore or indexes outside the top-level directory exist)
  4. userdel splunk
  5. groupdel splunk

Comments

No comments have been submitted.

Log in to comment.