Ok, let me go this way. I put a repo on a fresh machine, downloaded repo file, with opendistro repo, elasticsearch 6.x oss repo, and elasticsearch 7.x oss repo, and here is output below:
As you can see from repo file definition, both 6.x and 7.x repo should be oss repo, but when you list packages you will see that oss filebeat exist in 6.x but not in 7.x repo. Below I will put list of both repo packages:
It seems the filebeat package is oss 7.x repo is the good one even it doesn't have -oss suffix:
[root@9b5e2813860c /]# cat /etc/yum.repos.d/elastic.repo
[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
[root@9b5e2813860c /]# yum info filebeat
Available Packages
Name : filebeat
Arch : i686
Version : 7.6.2
Release : 1
Size : 18 M
Repo : elasticsearch-7.x
Summary : Filebeat sends log files to Logstash or directly to Elasticsearch.
URL : https://www.elastic.co/products/beats/filebeat
License : ASL-2.0
Description : Filebeat sends log files to Logstash or directly to Elasticsearch.
Name : filebeat
Arch : x86_64
Version : 7.6.2
Release : 1
Size : 18 M
Repo : elasticsearch-7.x
Summary : Filebeat sends log files to Logstash or directly to Elasticsearch.
URL : https://www.elastic.co/products/beats/filebeat
License : ASL-2.0
Description : Filebeat sends log files to Logstash or directly to Elasticsearch.
The important things to check are the Version which should be 7.6.2 (it seems we have some old version packages hidden in the repo) and License which should be ASL-2.0 (Elastic License on non OSS versions).
Meanwhile we are investigating on it and we'll fix it very soon.
So after some investigations, I can confirm you that Elasticsearch, Kibana and Logstash OSS packages have the -oss extensions while the other OSS packages (APM Server & Beats) don't have this extension anymore since 6.3.3.
That's why when you list the OSS 6.x repository packages with yum repo-pkgs elasticsearch-6.x list, you can see that apm-server and beats packages with -oss extension are 6.3.2 version.
I know that's pretty confusing but we prefer not removing them from existing repositories to avoid breaking installation of people still using these packages.
So for Filebeat OSS, you should use filebeat packages (without -oss) and in case of doubt use yum info to verify package license and version.
Thanks for help!
I have used yumdownloader to download filebeat from repo, and wget to pull the filebeat-oss Elasticsearch official site download, compared md5sum, and they are same:
[root@utils-ansible-01 tmp]# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-7.4.2-x86_64.rpm
[root@utils-ansible-01 tmp]# mv filebeat-oss-7.4.2-x86_64.rpm oss.rpm
[root@utils-ansible-01 tmp]# yumdownloader filebeat-7.4.2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos-distro.1gservers.com
* epel: dl.fedoraproject.org
* extras: mirrors.xtom.com
* updates: mirror.phx1.us.spryservers.net
warning: /tmp/filebeat-oss-7.4.2-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY=============================================== ] 14 MB/s | 14 MB 00:00:00 ETA
Public key for filebeat-oss-7.4.2-x86_64.rpm is not installed
filebeat-oss-7.4.2-x86_64.rpm | 19 MB 00:00:00
[root@utils-ansible-01 tmp]#
[root@utils-ansible-01 tmp]# ll
total 57504
-rw-r--r-- 1 root root 18961573 Mar 31 17:29 filebeat-oss-7.4.2-i686.rpm
-rw-r--r-- 1 root root 19931666 Mar 31 17:29 filebeat-oss-7.4.2-x86_64.rpm
-rw-r--r-- 1 root root 19931666 Mar 31 17:29 oss.rpm
[root@utils-ansible-01 tmp]# md5sum oss.rpm filebeat-oss-7.4.2-x86_64.rpm
6d7cd7b8b2feb631bee06ee614624d7b oss.rpm
6d7cd7b8b2feb631bee06ee614624d7b filebeat-oss-7.4.2-x86_64.rpm
Julien, just one more question, in the future, will naming convention stay the same that on OSS repo ELK packages will have -oss extension, and other packages like (APM Server & Beats) will not have -ossextension?
We may try to have same convention (-oss for all or none) at some point but we shouldn't do it before 8.x to not add change in existing 6.x and 7.x repositories.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.