How To Uninstall Splunk From Linux ?

Splunk is a wonderful cross platform Big Data Tool. Earlier we had discussed about installation process of Splunk, today we are going to give a brief description on un-installation process of this enlightening tool in Linux server. Hope you all enjoy this….

Step 1:

Open Linux Terminal by right clicking on the desktop and go to $SPLUNK_HOME directory

Now, stop Splunk services

# cd /opt/splunk/bin
# ./splunk stop

Step 2:

Now take the backup of Splunk Directory.  For that need to come back to the /opt directory.

# cd /opt
# tar cvf backup_filename.tar splunk

NOTE: ITS ALWAYS IMPORTANT TO KEEP BACKUP BEFORE UNINSTALLING ANYTHING FROM YOUR SERVER, OTHERWISE ALL THE SAVED DATA CAN BE DIMINISHED IN A SECOND.

Step 3:

After that move your backup tar file in any desired directory.

# mv backup_filename.tar <absolute_path_of_the_directory_where_you_want_to keep_your_backup_file>

Step 4:

Thenceforth, go to /opt and remove splunk directory from there.

# cd /opt

# rm -rf splunk

Step 5:

Now you have successfully uninstalled Splunk but you also need to check if any services of Splunk is running on the back-end or not, to do so we need to type.

# ps -aef|grep -i splunk

It will check the process of Splunk running or not in the back-end, if not then unistallation process is completed successfully.

You can also know about :  Creating a Splunk Locale

But if running then you need to kill that process

you can see the process ID after running ps command if Splunk is still running in the back-end.

# kill -9 <process ID>

This is all about  Uninstallation of Splunk, hope you all will be endowed with this post.

Happy Splunking!!

Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.