Advertisement
gnubyte

UFscript

Jan 30th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. ######### UF single instance install ########
  2. sudo yum install nano -y && sudo yum update -y && sudo yum install wget -y
  3. sudo yum install zip -y && sudo yum install unzip -y
  4. wget -O splunkforwarder-7.0.1-2b5b15c4ee89-Linux-x86_64.tgz 'https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&platform=linux&version=7.0.1&product=universalforwarder&filename=splunkforwarder-7.0.1-2b5b15c4ee89-Linux-x86_64.tgz&wget=true'
  5. sudo tar xvzf splunkforwarder-7.0.1-2b5b15c4ee89-Linux-x86_64.tgz -C /opt
  6. export SPLUNK_HOME=/opt/splunk/ >> ~/.bashrc
  7. . ~/.bashrc
  8. sudo groupadd splunk
  9. sudo adduser splunk -g splunk
  10. sudo chown -R splunk:splunk /opt/splunkforwarder
  11. sudo -H -u splunk /opt/splunkforwarder/bin/splunk start --accept-license
  12. sudo -H -u splunk /opt/splunkforwarder/bin/splunk edit user admin -password PASSWORD -role admin -auth admin:changeme
  13. sudo /opt/splunkforwarder/bin/splunk enable boot-start -user splunk
  14. sudo -H -u splunk /opt/splunkforwarder/bin/splunk restart
  15. # chmod +x script.sh
  16. # sudo ./script.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement