-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[AI4DSOC] Fix last event ingested for sentinel_one integration #230277
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
[AI4DSOC] Fix last event ingested for sentinel_one integration #230277
Conversation
|
Pinging @elastic/security-threat-hunting-investigations (Team:Threat Hunting:Investigations) |
NicholasPeretti
left a comment
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.
Sneaky little one! Great job!
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16682683494 |
…ic#230277) (cherry picked from commit 1f21622)
…ic#230277) (cherry picked from commit 1f21622)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…230277) (#230300) # Backport This will backport the following commits from `main` to `9.1`: - [[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)](#230277) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Philippe Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2025-08-01T18:43:08Z","message":"[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)","sha":"1f21622d5455330459aa52c1db3250aec710ed13","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat Hunting:Investigations","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[AI4DSOC] Fix last event ingested for sentinel_one integration","number":230277,"url":"https://github.com/elastic/kibana/pull/230277","mergeCommit":{"message":"[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)","sha":"1f21622d5455330459aa52c1db3250aec710ed13"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230277","number":230277,"mergeCommit":{"message":"[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)","sha":"1f21622d5455330459aa52c1db3250aec710ed13"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
…#230277) (#230299) # Backport This will backport the following commits from `main` to `8.19`: - [[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)](#230277) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Philippe Oberti","email":"philippe.oberti@elastic.co"},"sourceCommit":{"committedDate":"2025-08-01T18:43:08Z","message":"[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)","sha":"1f21622d5455330459aa52c1db3250aec710ed13","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Threat Hunting:Investigations","backport:version","v9.2.0","v9.1.1","v8.19.1"],"title":"[AI4DSOC] Fix last event ingested for sentinel_one integration","number":230277,"url":"https://github.com/elastic/kibana/pull/230277","mergeCommit":{"message":"[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)","sha":"1f21622d5455330459aa52c1db3250aec710ed13"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/230277","number":230277,"mergeCommit":{"message":"[AI4DSOC] Fix last event ingested for sentinel_one integration (#230277)","sha":"1f21622d5455330459aa52c1db3250aec710ed13"}},{"branch":"9.1","label":"v9.1.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Philippe Oberti <philippe.oberti@elastic.co>
Summary
This PR fixes a very small issue where the last sync value for the
sentinel_oneintegration was not showing up, while alerts were clearly fetched and rendered in the alerts table.Doing some investigation, we discovered that the documents ingested for the integrations like
crowdstrikeand others have the following key/value pair:event.kind: "alert".For the
sentinel_oneintegration though, theevent.kindfield haseventas a value.The original ESQL query I wrote to fetch the documents was:
Updating it to
ensures that we will look at all those documents to see if the index has had some recent activity.
At first we thought we could remove the
| WHERE event.kind == "alert"section entirely from the query, but we have some documents with aevent.kind: "pipline_error"which we do NOT want to take into account.As you can see, for integrations like


crowdstrike, the document retrieve does not change:Old:
New:
But for


sentinel_one, the new query fixes the issue:Old:
New:
#230110