Change the version number in this page to what will be upgraded too...!!!
Check for where splunk is:
DoAnsibleRun.bash 'ps -ef |egrep -i splunk | egrep -v grep' |egrep -v 'FAILED|Shared|non-zero'
cd /usr/local/src
mkdir Splunk-8.1.1
cd Splunk-8.1.1
wget http://centosone.binghamton.edu/Upload/splunkforwarder-8.1.1-605df3f0dfdd-Linux-x86_64.tgz
/opt/splunkforwarder/bin/splunk --version
cd /opt
tar -cvf splunkforwarder-<current-version>.tar splunkforwarder
tar -cvf splunkforwarder_local-8.1.1.tar splunkforwarder/etc/system/local/
mv splunkforwarder splunkforwarder-<current-version>
tar -xvf /usr/local/src/Splunk-8.1.1/splunkforwarder-<current-version>.tar
/opt/splunkforwarder/etc/system/localserver.conf ### This is generating by the first start
inputs.conf ### This has the Host Name and local log fileshost = HOSTNAME.binghamton.edu [monitor:////var/log/LOGNAME.log disabled = false sourcetype = WHO NOW provides index = WHO NOW provides
outputs.conf ### WHO NOW Provides these Values
/opt/splunkforwarder/bin/splunk stop
tar -xvf /usr/local/src/Splunk-8.1.1/splunkforwarder-8.1.1-605df3f0dfdd-Linux-x86_64.tgz
/opt/splunkforwarder-<version>)
/opt/splunkforwarder/bin/splunk start
inputs.conf are being sent.
To recover... stop splunk cd /opt mv splunkforwarder splunkforwarder-failed tar -xvf splunkforwarder-<version>.tar