Skip to content

Commit

Permalink
o365: Fix processing of ModifiedProperties field (#23777) (#23786)
Browse files Browse the repository at this point in the history
A bug was causing entries for the ModifiedProperties field to be
dropped.

(cherry picked from commit 1f8a2e6)
  • Loading branch information
adriansr authored Feb 1, 2021
1 parent 7fc2b2a commit bce0439
Show file tree
Hide file tree
Showing 3 changed files with 102 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 @@ -262,6 +262,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Fix concurrent modification exception in Suricata ingest node pipeline. {pull}23534[23534]
- Change the `event.created` in Netflow events to be the time the event was created by Filebeat
to be consistent with ECS. {pull}23094[23094]
- Fix handling of ModifiedProperties field in Office 365. {pull}23777[23777]

*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/o365/audit/config/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function makeDictFromModifiedPropertyArray(options) {
if (src[i] == null
|| (name=src[i].Name) == null
|| (newValue=src[i].NewValue) == null
|| (oldValue=src[i].OldValue)) continue;
|| (oldValue=src[i].OldValue) == null) continue;
name = validFieldName(name);
if (name in dict) {
if (dict[name].NewValue instanceof Array) {
Expand Down
Loading

0 comments on commit bce0439

Please sign in to comment.