-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behaviour when updating beats via Yum/RPM - Previous configuration not always retained. #8075
Comments
I tested upgrading filebeat from 6.1.0 to 6.2.0 with a minor config change and had the same issue:
I think this rules out any issue with the recent packaging refactor. However, it's still a good idea to investigate how/if we can improve this behavior |
The causes is that we are missing Lines 168 to 177 in bf72246
This will not affect debian packages because deb automatically marks everything in So the simplest fix is to just add |
The Auditbeat config file, `/etc/auditbeat/auditbeat.yml`, was not correctly marked as `configfile` in the RPM spec. The same issue affected Metricbeat's `/etc/metricbeat/modules.d/*`. Packetbeat's config customizations were missing the `Config: true` but this didn't have any impact because the config is only customized for Windows. Fixes elastic#8075
Oh now I see my check was wrong, didn't realise the difference between rpmsave and rpmnew files |
The Auditbeat config file, `/etc/auditbeat/auditbeat.yml`, was not correctly marked as `configfile` in the RPM spec. The same issue affected Metricbeat's `/etc/metricbeat/modules.d/*`. Packetbeat's config customizations were missing the `Config: true` but this didn't have any impact because the config is only customized for Windows. Fixes #8075
The Auditbeat config file, `/etc/auditbeat/auditbeat.yml`, was not correctly marked as `configfile` in the RPM spec. The same issue affected Metricbeat's `/etc/metricbeat/modules.d/*`. Packetbeat's config customizations were missing the `Config: true` but this didn't have any impact because the config is only customized for Windows. Fixes elastic#8075 (cherry picked from commit 0b32c2d)
The Auditbeat config file, `/etc/auditbeat/auditbeat.yml`, was not correctly marked as `configfile` in the RPM spec. The same issue affected Metricbeat's `/etc/metricbeat/modules.d/*`. Packetbeat's config customizations were missing the `Config: true` but this didn't have any impact because the config is only customized for Windows. Fixes elastic#8075 (cherry picked from commit 0b32c2d)
The Auditbeat config file, `/etc/auditbeat/auditbeat.yml`, was not correctly marked as `configfile` in the RPM spec. The same issue affected Metricbeat's `/etc/metricbeat/modules.d/*`. Packetbeat's config customizations were missing the `Config: true` but this didn't have any impact because the config is only customized for Windows. Fixes #8075 (cherry picked from commit 0b32c2d)
The Auditbeat config file, `/etc/auditbeat/auditbeat.yml`, was not correctly marked as `configfile` in the RPM spec. The same issue affected Metricbeat's `/etc/metricbeat/modules.d/*`. Packetbeat's config customizations were missing the `Config: true` but this didn't have any impact because the config is only customized for Windows. Fixes #8075 (cherry picked from commit 0b32c2d)
The Auditbeat config file, `/etc/auditbeat/auditbeat.yml`, was not correctly marked as `configfile` in the RPM spec. The same issue affected Metricbeat's `/etc/metricbeat/modules.d/*`. Packetbeat's config customizations were missing the `Config: true` but this didn't have any impact because the config is only customized for Windows. Fixes elastic#8075 (cherry picked from commit 686088d)
Previously When updating via Yum/RPM, the existing yaml configuration file was retained and used by the daemon. The yml configuration provided by the package would be saved to beatname.yml.rpmnew.
I've just updated some beats to 6.4.0 from 6.3.2 and 1 of them did not use my existing configuration, but rather, the one bundled in the package. My existing configuration was moved to beatname.yml.rpmsave.
What normally happens:
-rw-r--r--. 1 root root 68549 Aug 17 22:21 fields.yml
-rw-r--r--. 1 root root 65074 Aug 17 22:21 filebeat.reference.yml
-rw-------. 1 root root 7410 Aug 1 11:00 filebeat.yml
-rw-------. 1 root root 7231 Aug 17 22:21 filebeat.yml.rpmnew
drwxr-xr-x. 2 root root 4096 Aug 24 07:04 modules.d
What happened for one of the other beats:
-rw-r--r--. 1 root root 43702 Aug 17 22:19 auditbeat.reference.yml
-rw-------. 1 root root 6250 Aug 17 22:19 auditbeat.yml
-rw-------. 1 root root 7252 Aug 1 11:11 auditbeat.yml.rpmsave
drwxr-xr-x. 2 root root 84 Aug 24 09:27 audit.rules.d
-rw-r--r--. 1 root root 38035 Aug 17 22:19 fields.yml
This is not ideal, as many customers updating in the same way will have to manually replace rename the configuration files so the correct one is used, especially large deployments being updated via Ansible etc.
Thanks,
James
The text was updated successfully, but these errors were encountered: