├── README.md ├── bin ├── upgrade.sh └── wrapper.sh ├── local ├── app.conf └── inputs.conf └── static └── splunkforwarder-6.5.2-67571ef4b87d-Linux-x86_64.tgz /README.md: -------------------------------------------------------------------------------- 1 | # upgrade_linux_uf 2 | 3 | I am not repsonsible for any damages or lost data caused to target systems due to abuse or misunderstanding. The software is provided as-is and I take no responsbility for what you (the user) do with it. Use carefully and wisely. The app is designed to be deployed only once and then removed. Using it without careful planning will likely result in tears. :'( 4 | -------------------------------------------------------------------------------- /bin/upgrade.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # set splunk path 4 | SPLUNK_HOME=/opt/splunkforwarder 5 | 6 | # set desired version 7 | NVER=6.5.2 8 | 9 | # determine current version 10 | CVER=`cat $SPLUNK_HOME/etc/splunk.version | grep VERSION | cut -d= -f2` 11 | 12 | if [ "$NVER" != "$CVER" ] 13 | then 14 | 15 | echo "Upgrading Splunk to $NVER." 16 | $SPLUNK_HOME/bin/splunk stop 17 | tar -xvf $SPLUNK_HOME/etc/apps/upgrade_linux_uf/static/splunkforwarder-6.5.2-67571ef4b87d-Linux-x86_64.tgz -C /opt 18 | $SPLUNK_HOME/bin/splunk start --accept-license --answer-yes 19 | 20 | fi 21 | 22 | -------------------------------------------------------------------------------- /bin/wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ( /opt/splunkforwarder/etc/apps/upgrade_linux_uf/bin/upgrade.sh & ) 4 | -------------------------------------------------------------------------------- /local/app.conf: -------------------------------------------------------------------------------- 1 | # Autogenerated file -------------------------------------------------------------------------------- /local/inputs.conf: -------------------------------------------------------------------------------- 1 | [script://$SPLUNK_HOME/etc/apps/upgrade_linux_uf/bin/wrapper.sh] 2 | disabled = false 3 | interval = 3600 4 | sourcetype = upgrade_linux_uf 5 | index = main 6 | -------------------------------------------------------------------------------- /static/splunkforwarder-6.5.2-67571ef4b87d-Linux-x86_64.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lnetto/upgrade_linux_uf/5ac45261749b29a6f409861779030655afa1d5b2/static/splunkforwarder-6.5.2-67571ef4b87d-Linux-x86_64.tgz --------------------------------------------------------------------------------