Skip to content

Commit

Permalink
Cherry-pick #13808 to 7.x: Fix renaming cloud metadata processor fiel…
Browse files Browse the repository at this point in the history
…ds (#16770)

* Fix renaming cloud metadata processor fields (#13808)

Clone the underlying metadata to allow renaming sub-fields under cloud
that are injected by the cloud metadata processor.

(cherry picked from commit 6785901)

Co-authored-by: Jameel Al-Aziz <247849+jalaziz@users.noreply.github.com>
  • Loading branch information
kaiyan-sheng and jalaziz authored Mar 6, 2020
1 parent c72d98e commit 0331db0
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 @@ -68,6 +68,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Update replicaset group to apps/v1 {pull}15854[15802]
- Fix `metricbeat test output` with an ipv6 ES host in the output.hosts. {pull}15368[15368]
- Fix `convert` processor conversion of string to integer with leading zeros. {issue}15513[15513] {pull}15557[15557]
- Fix `add_cloud_metadata` to better support modifying sub-fields with other processors. {pull}13808[13808]
- Fix panic in the Logstash output when trying to send events to closed connection. {pull}15568[15568]
- Fix missing output in dockerlogbeat {pull}15719[15719]
- Fix logging target settings being ignored when Beats are started via systemd or docker. {issue}12024[12024] {pull}15422[15442]
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 0331db0

Please sign in to comment.