--- Spunk Update ---

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'

    Download and Stage tarball.
  1. cd /usr/local/src
  2. mkdir Splunk-8.1.1
  3. cd Splunk-8.1.1
  4. wget http://centosone.binghamton.edu/Upload/splunkforwarder-8.1.1-605df3f0dfdd-Linux-x86_64.tgz
      :
    Backup Splunk directories.
  5. /opt/splunkforwarder/bin/splunk --version
  6. cd /opt
  7. tar -cvf splunkforwarder-<current-version>.tar splunkforwarder
  8. tar -cvf splunkforwarder_local-8.1.1.tar splunkforwarder/etc/system/local/
  9. mv splunkforwarder splunkforwarder-<current-version>
  10. cd /opt
  11. tar -xvf /usr/local/src/Splunk-8.1.1/splunkforwarder-<current-version>.tar
  12. /opt/splunkforwarder/bin/splunk start ### Read and maybe takes notes. Enter a user and password.
    Make special note of the files in : /opt/splunkforwarder/etc/system/local
    • server.conf ### This is generating by the first start
    • inputs.conf ### This has the Host Name and local log files
      host = 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
    Install new Splunk version over existing installation.
  1. tar -xvf /usr/local/src/Splunk-8.1.1/splunkforwarder-8.1.1-605df3f0dfdd-Linux-x86_64.tgz
  2. Check that the files mentioned in step 8 are still intact.
        If not move from previous version (/opt/splunkforwarder-<version>)
  3. /opt/splunkforwarder/bin/splunk start
  4. Check splunk server that the files in inputs.conf are being sent.
    To recover...
    stop splunk
    cd /opt
    mv  splunkforwarder splunkforwarder-failed
    tar -xvf splunkforwarder-<version>.tar
    
    

    Valid HTML 4.01!