Hi @gcusello ,
We are planning to upgrade our Splunk environment from 7.1.x(current version) to 8.1 version.
We have single-instance Splunk environment. Just read in one of the doc that it needs to be in three following phases. But could not find steps/commands to upgrade it.
We have a search head ( axxxxxhd01 ), Indexer ( xxxxxhd01 ) and a forwarder ( xxxxxfw01).
Regards,
Rahul
Hi @rahul2gupta,
as @richgalloway said, you have a distributed environment, so at first see the documentation at
https://docs.splunk.com/Documentation/Splunk/8.1.3/Installation/HowtoupgradeSplunk and at https://docs.splunk.com/Documentation/Splunk/8.1.3/Installation/UpgradeyourdistributedSplunkEnterpri...
In few words: you can upgrade in one step for each machine from 7.1 to 8.1.x, the step to follo are these:
Ciao.
Giuseppe
Hi @gcusello ,
Do we need to install this app to check the compatibility (https://splunkbase.splunk.com/app/4698/)
What are the commands to upgrade Splunk from 7.1 to 8.1?
Regards,
Rahul
Hi @rahul2gupta,
yes you have to install the Readiness App on your Search Head and also on Indexer and Heavy Forwarder if you have apps on these servers.
The app gives you a report about compatibility of the installed apps with the new version of Splunk (and Python3) so you can know which apps you have to upgrade to work on the new Splunk version.
About the Splunk upgrade, after you did a backup, you have to:
rpm -U splunk-8.......rpm
/opt/splunk/bin/splunk start --accept-license
you can find this procedure at https://docs.splunk.com/Documentation/Splunk/8.1.3/Installation/UpgradeonUNIX
Remember, at the end, to configure your Splunk to run with Python3: https://docs.splunk.com/Documentation/Splunk/8.1.3/Installation/Python3LowEffort
Ciao.
Giuseppe
Hi @gcusello ,
I tried to upgrade my Splunk Indexer(axxxxxx) but after accepting license agreement , interface was not available so I reverted it back.
Can you please help me to understood as why it happened and now how should I upgrade it to 8.1.3?
Regards,
Rahul
Hi @gcusello ,
Thank you for the doc. Can you please help how to "Confirm that no other processes will automatically start Splunk Enterprise, such as a configuration management or service management tool" ?
URL: https://docs.splunk.com/Documentation/Splunk/8.1.3/Installation/UpgradeonUNIX (point no.4)
Regards,
Rahul
Hi @rahul2gupta,
this is a strange behaviour of the installation procedure because the documented procedure says to stop Splunk before to start upgrading, but when you run the upgrade command, Splunk gives an error message that the system isn't running!
In other words that item ("confirm ...") is related to the point that Splunk must be stopped for upgrade, and you could have (and you have to check this) an automatic restart deamon, that I never saw in my experience.
Ciao.
Giuseppe
Hi @gcusello ,
Thank you for the clarification.
I was wondering, if the things do not go as expected. so what should be the Roll-back plan?
Regards,
Rahul
Hi @rahul2gupta,
using a unix system, the restore plan is easy:
Anyway, it's correct to have always a roll-back plain but this is a quiet upgrade if you have all the apps for the new environment and surely you'll now have any problem.
Ciao.
Giuseppe.
Hi @gcusello ,
We installed an app "Splunk Platform Upgrade Readiness App" and scanned all the apps in our existing environment.
It shows the following output.
Query: What is blocker apps and what should be our next step?
Regards,
Rahul Gupta
Hi
Blocker apps are something what you must fix before update. You should see those on that report and also this report should show you some hints what is wrong with those and how to fix those.
Here is one other good link to update order of distributed environment https://community.splunk.com/t5/Installation/What-s-the-order-of-operations-for-upgrading-Splunk-Ent.... Unfortunately they haven't added to use of that readiness app here.
r. Ismo
If you have a separate search head and indexer then you do not have a single-instance Splunk environment. You have a distributed Splunk environment.
Here are the steps: