Skip to content

Commit

Permalink
Fix renaming cloud metadata processor fields
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 committed Nov 13, 2019
1 parent 8833ab6 commit 10a8f25
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 @@ -123,6 +123,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
TLS or Beats that accept connections over TLS and validate client certificates. {pull}14146[14146]
- Support usage of custom builders without hints and mappers {pull}13839[13839]
- Fix kubernetes `metaGenerator.ResourceMetadata` when parent reference controller is nil {issue}14320[14320] {pull}14329[14329]
- 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 10a8f25

Please sign in to comment.