How to upgrade to a specific version

Hi all, I am currently on version 7.1.1, but I wish to upgrade it to 7.3.2. Instead of upgrading to the latest version 7.4.0, how can I upgrade using the repository to this 7.3.2 ?

Hello, thanks for the question about beats.

Which type of repository are you using - APT or YUM?

If you're using an APT repository, you can do the following to check versions of filebeat and install version 7.3.2.

# apt-cache policy filebeat
filebeat:
  Installed: (none)
  Candidate: 7.4.0
  Version table:
     7.4.0 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.3.2 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.3.1 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.3.0 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.2.1 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.2.0 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.1.1 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.1.0 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.0.1 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages
     7.0.0 500
        500 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages

# apt install filebeat=7.3.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  filebeat
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 25.5 MB of archives.
After this operation, 91.5 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 filebeat amd64 7.3.2 [25.5 MB]
Fetched 25.5 MB in 2s (11.1 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package filebeat.
(Reading database ... 4730 files and directories currently installed.)
Preparing to unpack .../filebeat_7.3.2_amd64.deb ...
Unpacking filebeat (7.3.2) ...
Setting up filebeat (7.3.2) ...

# dpkg -l filebeat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                 Version                 Architecture            Description
+++-====================================-=======================-=======================-=============================================================================
ii  filebeat                             7.3.2                   amd64                   Filebeat sends log files to Logstash or directly to Elasticsearch.
1 Like

If you're using a YUM repository, you can do the following:

# yum list available filebeat --showduplicates
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.mobap.edu
 * extras: mirror.mobap.edu
 * updates: mirror.mobap.edu
Available Packages
filebeat.i686                                                                      7.0.0-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.0.0-1                                                                    elastic-7.x
filebeat.i686                                                                      7.0.1-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.0.1-1                                                                    elastic-7.x
filebeat.i686                                                                      7.1.0-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.1.0-1                                                                    elastic-7.x
filebeat.i686                                                                      7.1.1-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.1.1-1                                                                    elastic-7.x
filebeat.i686                                                                      7.2.0-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.2.0-1                                                                    elastic-7.x
filebeat.i686                                                                      7.2.1-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.2.1-1                                                                    elastic-7.x
filebeat.i686                                                                      7.3.0-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.3.0-1                                                                    elastic-7.x
filebeat.i686                                                                      7.3.1-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.3.1-1                                                                    elastic-7.x
filebeat.i686                                                                      7.3.2-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.3.2-1                                                                    elastic-7.x
filebeat.i686                                                                      7.4.0-1                                                                    elastic-7.x
filebeat.x86_64                                                                    7.4.0-1                                                                    elastic-

# yum install -y filebeat-7.3.2-1.x86_64
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.mobap.edu
 * extras: mirror.mobap.edu
 * updates: mirror.mobap.edu
Resolving Dependencies
--> Running transaction check
---> Package filebeat.x86_64 0:7.3.2-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================================
 Package                                 Arch                                  Version                                  Repository                                  Size
=========================================================================================================================================================================
Installing:
 filebeat                                x86_64                                7.3.2-1                                  elastic-7.x                                 24 M

Transaction Summary
=========================================================================================================================================================================
Install  1 Package

Total download size: 24 M
Installed size: 87 M
Downloading packages:
filebeat-7.3.2-x86_64.rpm                                                                                                                         |  24 MB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : filebeat-7.3.2-1.x86_64                                                                                                                               1/1
  Verifying  : filebeat-7.3.2-1.x86_64                                                                                                                               1/1

Installed:
  filebeat.x86_64 0:7.3.2-1

Complete!

# rpm -q filebeat
filebeat-7.3.2-1.x86_64
1 Like

Thanks ! it works!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.