Hi Jonh,
When uninstalling Filebeat, you could remove the
/etc/filebeat/ and
/usr/share/filebeat/ directories. After installing the exptected Filebeat OSS distribution, then you follow the steps to configure Filebeat mentioned here: https://documentation.wazuh.com/4.2/installation-guide/open-distro/all-in-one-deployment/all-in-one.html#installing-filebeat (Filebeat configuration, move certificates, download wazuh module for Filebeat, etc...)
I see in the shared logs:
The following packages will be REMOVED:
filebeat*
0 upgraded, 0 newly installed, 1 to remove and 113 not upgraded.
After this operation, 123 MB disk space will be freed.
(Reading database ... 203688 files and directories currently installed.)
Removing filebeat (7.10.2) ...
(Reading database ... 202483 files and directories currently installed.)
Purging configuration files for filebeat (7.10.2) ...
dpkg: warning: while removing filebeat, directory '/etc/filebeat' not empty so not removed
dpkg: warning: while removing filebeat, directory '/usr/share/filebeat/module' not empty so not removed
that mentions the version of Filebeat is 7.10.2, and
this doesn't match with this response that you did in a previous message. Anyways, try to remove the current Filebeat you have installed and install Filebeat OSS distribution 7.10.2.
If you had Filebeat 7.17.5 previously as mentioned in
this message, maybe you have added the Elastic package repository and when you run the command to install Filebeat using your package manager, this installed the package of Elastic repository instead of the Wazuh repository or you managed to upgrade of some way.
Anyways, you should ensure you install Filebeat OSS distribution 7.10.2 in each Wazuh manager node.
How can I make sure that I am installing the OSS distribution?
I was researching how to check if the installed package is an OSS distribution, but unfortunately, I didn't find a way to do it, so you should follow the steps to install the correct package.
Alternatives to install Filebeat OSS distribution 7.10.2:
- Using the package manager:
Before installing Filebeat, if you go to use the package manager, check what repositories you have added. If you have the official Elastic repository and you install Filebeat, the package manager could install one package of that repository instead of the Wazuh, causing you finally install a default distribution or a recent version, but you need Filebeat OSS distribution 7.10.2.
- Download the file depending on your operating system and install it:
https://www.elastic.co/es/downloads/past-releases/filebeat-oss-7-10-2