Skip to content

Instantly share code, notes, and snippets.

@jermdw
Created November 23, 2016 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jermdw/fc213141604acadfec760a177c7136d8 to your computer and use it in GitHub Desktop.
Save jermdw/fc213141604acadfec760a177c7136d8 to your computer and use it in GitHub Desktop.
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
@jermdw
Copy link
Author

jermdw commented Nov 23, 2016

Don't forget to chmod +x to make the shell script executable! Also, run as sudo, requires elevated permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment