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….
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
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.
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>
Thenceforth, go to /opt and remove splunk directory from there.
# cd /opt
# rm -rf splunk
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.
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.