Skip to content

Commit

Permalink
Fix renaming cloud metadata processor fields (elastic#13808)
Browse files Browse the repository at this point in the history
Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.
  • Loading branch information
jalaziz authored Mar 3, 2020
1 parent 4747338 commit 3f2565b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

*Affecting all Beats*

- Fix `add_cloud_metadata` to better support modifying sub-fields with other processors. {pull}13808[13808]
- TLS or Beats that accept connections over TLS and validate client certificates. {pull}14146[14146]
- Fix panics that could result from invalid TLS certificates. This can affect Beats that connect over TLS, or Beats that accept connections over TLS and validate client certificates. {pull}14146[14146]
- Fix panic in the Logstash output when trying to send events to closed connection. {pull}15568[15568]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (p *addCloudMetadata) init() {

func (p *addCloudMetadata) getMeta() common.MapStr {
p.init()
return p.metadata
return p.metadata.Clone()
}

func (p *addCloudMetadata) Run(event *beat.Event) (*beat.Event, error) {
Expand Down

0 comments on commit 3f2565b

Please sign in to comment.