Upgrade Elasticsearch from 7 to 8 on RedHat
check in kibana in upgrade assistant for any changes or inconsistencies on the config. You must mitigate them
as adived.
Stop elasticsearch and kibana service
systemctl stop elasticsearch systemctl stop kibana
For the latest version, modify the elasticsearch configuration file to the latest version, as below:
nano /etc/yum.repos.d/elasticsearch.repo
[elasticsearch] name=Elasticsearch repository for 8.x packages baseurl=https://artifacts.elastic.co/packages/8.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=0 autorefresh=1 type=rpm-md
Upgrade using the below command
yum install --enablerepo=elasticsearch elasticsearch
Start the service:
systemctl start elasticsearch
Upgrade all the nodes using the above method before proceeding to the kibana upgrade.