Tags: phobosq/beats
Tags
Fix changelog entry (elastic#8001) (elastic#8003) (cherry picked from commit 8e4fd66)
Fix filebeat registry meta being nil vs empty (elastic#7632) (elastic… …#7644) Filebeat introduces a meta field to registry entries in 6.3.1. The meta field is used to distuingish different log streams in docker files. For other input types the meta field must be null. Unfortunately the input loader did initialize the meta field with an empty dictionary. This leads to failing matches of old and new registry entries. Due to the match failing, old entries will not be removed, and filebeat will handle all files as new files on startup (old logs are send again). Users will observe duplicate entries in the reigstry file. One entry with "meta": null and one entry with "meta": {}. The entry with "meta": {} will be used by filebeat. The null-entry will not be used by filebeat, but is kept in the registry file, cause it has now active owner (yet). Improvements provided by this PR: * when matching states consider an empty map and a null-map to be equivalent * update input loader to create a null map for old state -> registry entries will be compatible on upgrade * Add checks in critical places replacing an empty map with a null-map * Add support to fix registry entries on load. states from corrupted 6.3.1 files will be merged into one single state on load * introduce unit tests for loading different registry formats * introduce system tests validating output and registry when upgrading filebeat from an older version Closes: elastic#7634 (cherry picked from commit c558984)
Move changelog entries of backports for 6.3.1 (elastic#7460) * Move changelog entries of backports for 6.3.1 * Move a couple of non-breaking changes to added * Move Heartbeat breaking changes to Added * Moved some more entries out of the breaking changes section * Added suggestions in review
Don't emit Kubernetes autodiscover events without host (elastic#7235) (… …elastic#7289) Some kubernetes events are generated while the container is being configured. It doesn't make sense to emit an event yet, as the host will be update right afterwards. This PR changes the code to ignore Pod events without an IP address. (cherry picked from commit 7b5a7e4)
Fix out of bounds access in HTTP parser (elastic#6409) (elastic#6997) (… …elastic#7065) A broken HTTP request caused the parser to report a panic. Fixes elastic#6409
Defer registry state cleanup (elastic#6347) (elastic#6812) - Defer registrar state gc until the registry needs to be written. - when updating regitrar states from batch, ensure all updated states will have same timestamp. Depends on elastic#6346 (cherry picked from commit 2d2400b)
PreviousNext