Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[8.12](backport #37116) [m365_defender] Fix log data stream cursor and query #37745

Merged
merged 3 commits into from
Jan 29, 2024
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 @@ -71,6 +71,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff]
- Fix Filebeat Cisco module with missing escape character {issue}36325[36325] {pull}36326[36326]
- Added a fix for Crowdstrike pipeline handling process arrays {pull}36496[36496]
- Fix TCP/UDP metric queue length parsing base. {pull}37714[37714]
- Fix m365_defender cursor value and query building. {pull}37116[37116]

*Heartbeat*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ request.transforms:
value: "MdatpPartner-Elastic-Filebeat/1.0.0"
- set:
target: "url.params.$filter"
value: 'lastUpdateTime gt [[formatDate .cursor.lastUpdateTime "2006-01-02T15:04:05.9999999Z"]]'
value: 'lastUpdateTime gt [[.cursor.lastUpdateTime]]'
default: 'lastUpdateTime gt [[formatDate (now (parseDuration "-55m")) "2006-01-02T15:04:05.9999999Z"]]'

response.split:
target: body.value
ignore_empty_value: true
Expand All @@ -31,10 +30,10 @@ response.split:
split:
target: body.alerts.entities
keep_parent: true

cursor:
lastUpdateTime:
value: "[[.last_response.body.lastUpdateTime]]"
value: "[[.last_event.lastUpdateTime]]"
ignore_empty_value: true

{{ else if eq .input "file" }}

Expand Down
Loading