-
Notifications
You must be signed in to change notification settings - Fork 469
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
[microsoft_exchange_online_message_trace] Remove event.start/end #12446
[microsoft_exchange_online_message_trace] Remove event.start/end #12446
Conversation
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
🚀 Benchmarks reportTo see the full report comment with |
Quality Gate passedIssues Measures |
💚 Build Succeeded
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Package microsoft_exchange_online_message_trace - 1.25.3 containing this change is available at https://epr.elastic.co/package/microsoft_exchange_online_message_trace/1.25.3/ |
…stic#12446) Don't set `event.start` and `event.end` to `StartDate` and `EndDate`, because those are query parameters, not properties of the event itself. Also, extend the description of the `additional_look_back` setting to note that up to 24h may be necessary (according to the API documentation[1]). [1]: https://learn.microsoft.com/en-us/previous-versions/office/developer/o365-enterprise-developers/jj984335%28v%3doffice.15%29
Proposed commit message
Discussion
Elsewhere I suggested standard solutions for pagination when there is:
I suggested switching from the look-back strategy (introduced in #8717) to the standard solutions, in order to reduce fetching of the same data multiple times (and reduce indexing failures due to duplicate
_id
values).However, the standard solution for delayed data availability isn't possible, because there is no creation or update time associated with the log entries we receive.
StartDate
andEndDate
are query parameters. In the API documentation these fields are marked "[In]" rather than "[In/Out]" (input parameters and report output columns). We just see them echoed back in the response.This PR cleans up incorrect population of ECS fields with
StartDate
andEndDate
.Shall we drop
microsoft.online_message_trace.StartDate
andmicrosoft.online_message_trace.EndDate
as well?The standard solution for an unstable period is complicated by the fact that this period can be quite long. In #8717 it was reported to usually be less than an hour, but some users on the Internet report delays of multiple hours and the API documentation says up to 24 hours.
So, regarding pagination and duplicate
_id
values, the choice is between:_id
values (using the look-back strategy).In this case I think the look-back strategy is not a bad one.
Checklist
changelog.yml
file.Related issues