jermdw
11/23/2016 - 1:09 AM

Splunk - quick install script for Linux64

Splunk - quick install script for Linux64

#!/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