Elasticsearch Upgrade

I’m relatively new to Graylog and have just upgraded to 4.0.9 which went without issue but I now want to upgrade Elasticsearch v6.8 and all the documentation says that anything after 7.1 is unsupported.

I’ve followed the Elasticsearch upgrade doc but this will take it to the latest version 7.15.

How can I specifically choose a version 7.1 as this is the latest supported version?

Any help would be much appreciated.

Thanks

Jon

I’ll just guess that you are installing on Debian or a related offshoot… if not, relevant information can be found close by to these links:

https://www.elastic.co/downloads/past-releases#elasticsearch

So a point of clarification: 7.1 is supported, anything after 7.10 is not. And to install a singular version of Elasticsearch you can either directly download the package from Elasticsearch, or use one of the repositories and specify the version with either yum or apt, depending on your distro.

I will note though, PIN:clap:YOUR:clap:VERSION:clap:. RHEL and Debian based systems both have ways to pin versions through either a config file or using something like apt-mark hold. If you don’t want to end up using a version that’s not currently supported by Graylog, pinning will save you a lot of headache.

3 Likes

Had to look up how to pin ( :clap:) for my own wet repository. In case anyone is looking:

Ubuntu - Pin - Howto

2 Likes

Thanks, I’m using CENTOS v7.9.

I’ve tried using but it just comes back with repository doesn’t exist, does anyone have a repository link for 7.1 that I can use please?

Thanks

Jon

[elasticsearch-7.1]
name=Elasticsearch repository for 7.1 packages
baseurl=https://artifacts.elastic.co/packages/oss-7.1/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

@jonchill you’re in luck.

I will suggest however to keep in mind to 100% disable the repo after the upgrade to 7.10. Ask me how I know this :joy:

echo -e "[elasticsearch]\nname=Elasticsearch repository for 7.x packages\nbaseurl=https://artifacts.elastic.co/packages/7.x/yum\ngpgcheck=1\ngpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch\nenabled=1\nautorefresh=1\ntype=rpm-md" > /etc/yum.repos.d/elasticsearch.repo
yum install -y elasticsearch-7.10.0-1