Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

#29747: Fix Add Network Direction processor #29751

Merged
merged 4 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

*Affecting all Beats*

- Fix field names with `add_network_direction` processor. {issue}29747[29747] {pull}29751[29751]

*Auditbeat*

Expand Down
4 changes: 1 addition & 3 deletions libbeat/processors/actions/add_network_direction.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ func (m *networkDirectionProcessor) Run(event *beat.Event) (*beat.Event, error)
return event, err
}

event.Fields.DeepUpdate(common.MapStr{
m.Target: networkDirection(internalSource, internalDestination),
})
event.PutValue(m.Target, networkDirection(internalSource, internalDestination))
return event, nil
}

Expand Down