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.

(cherry picked from commit 6785901)
  • Loading branch information
jalaziz authored and jsoriano committed May 7, 2020
1 parent 25cc733 commit 265aec3
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 @@ -39,6 +39,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
*Affecting all Beats*

- Fix bug with `monitoring.cluster_uuid` setting not always being exposed via GET /state Beats API. {issue}16732[16732] {pull}17420[17420]
- Fix `add_cloud_metadata` to better support modifying sub-fields with other processors. {pull}13808[13808]

*Auditbeat*

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 265aec3

Please sign in to comment.