Created
November 23, 2016 01:09
-
-
Save jermdw/fc213141604acadfec760a177c7136d8 to your computer and use it in GitHub Desktop.
Splunk - quick install script for Linux64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Splunk-EasyInstallation Script | |
#Courtesy of Ryan from DrunkInfoSec | |
#20161122 | |
wget -O splunk.tgz 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=6.5.0&product=splunk&filename=splunk-6.5.0-59c8927def0f-Linux-x86_64.tgz&wget=true' && \ | |
tar xzvf splunk.tgz && \ | |
sudo mv splunk /opt/ && \ | |
sudo /opt/splunk/bin/splunk start --accept-license && \ | |
sudo useradd splunk && \ | |
sudo /opt/splunk/bin/splunk enable boot-start -user splunk && \ | |
for x in `pgrep -f splunk`; do sudo kill -9 $x; done && \ | |
sudo chown -R splunk:splunk /opt/splunk && \ | |
sudo cp /opt/splunk/etc/system/default/web.conf /opt/splunk/etc/system/local/ && \ | |
sudo sed -i "s/enableSplunkWebSSL = false/enableSplunkWebSSL = true/" /opt/splunk/etc/system/local/web.conf && \ | |
sudo service splunk start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't forget to
chmod +x
to make the shell script executable! Also, run assudo
, requires elevated permissions.