Skip to content

Commit

Permalink
renamed splunkforwarder, added context info to forwarder and server s…
Browse files Browse the repository at this point in the history
…cripts
  • Loading branch information
0xjmux committed Apr 17, 2021
1 parent 94f1349 commit f97ee92
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion splunk-ent-install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/env bash
#!/bin/bash
#########################################################
# https://github.com/UCI-CCDC/CCDC2021
# script raw is at https://raw.githubusercontent.com/UCI-CCDC/CCDC2021/master/splunk-ent-install.sh
#UCI CCDC splunk server setup script

#Written by UCI CCDC linux subteam
#UCI CCDC, 2021
########################################################

### RUN BELOW SCRIPT TO DOWNLOAD
### wget -O splunk-8.0.2-a7f645ddaf91-Linux-x86_64.tgz 'https://splk.it/2TNfwRD'
###
Expand Down
11 changes: 10 additions & 1 deletion makeforwarder.sh → splunkforwarder-setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash
########################################################
# https://github.com/UCI-CCDC/CCDC2020
# script raw is at https://raw.githubusercontent.com/UCI-CCDC/CCDC2021/master/makeforwarder.sh
#UCI CCDC setup script for splunk client setup

#Written by UCI CCDC linux subteam
#UCI CCDC, 2021
########################################################


if [[ $EUID -ne 0 ]]; then
printf 'Must be run as root, exiting!\n'
Expand Down Expand Up @@ -46,4 +55,4 @@ sed -i 's/"$SPLUNK_HOME\/bin\/splunk" stop/su - splunk -c '\''"$SPLUNK_HOME\/bin
sed -i 's/"$SPLUNK_HOME\/bin\/splunk" restart/su - splunk -c '\''"$SPLUNK_HOME\/bin\/splunk" restart'\''/g' /etc/init.d/splunk
sed -i 's/"$SPLUNK_HOME\/bin\/splunk" status/su - splunk -c '\''"$SPLUNK_HOME\/bin\/splunk" status'\''/g' /etc/init.d/splunk

su - splunk -c '/opt/splunkforwarder/bin/splunk restart'
su - splunk -c '/opt/splunkforwarder/bin/splunk restart'

0 comments on commit f97ee92

Please sign in to comment.