-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security solution][Session view] - Add Sessions tab into the Hosts page #127920
Conversation
x-pack/plugins/security_solution/public/common/components/sessions_viewer/sessions_table.tsx
Outdated
Show resolved
Hide resolved
3df8bea
to
3d2a8d9
Compare
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.
Looking good to me! 🎉 Just need some tests for it like we discussed :)
should: [ | ||
{ | ||
match: { | ||
'process.is_entry_leader': true, |
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.
just about to test whether endpoint agent added this yet, but we will have a process.entry_leader.same_as_process: true prop which will act as a means to pull all entry leaders.
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.
here is tracking for this. https://github.com/elastic/security-team/issues/3470
we'll have to circle back and update this, for now probably can't wait for this fix.
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.
alright, I added a TODO to switch the fields once we have same_as_process
working, also a todo to remove the runtime_mapping
on the search strategy.
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.
LGTM
|
||
const runtimeMappings = { | ||
// TODO: remove once ECS is updated to support process.entry_leader.same_as_process | ||
'process.is_entry_leader': { |
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.
@kqualters-elastic this is the only field we need to keep on the runtime mappings because we don't have same_as_process
being populated currently, and probably we won't have before FF, so we will have to backport that in the future. There's an open issue about that: https://github.com/elastic/security-team/issues/3470
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.
I guess 1 is ok 😬 that's what the beta flag is for i guess ha
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.
Would prefer 0 runtime mappings, but in the meantime 👍 LGTM
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
This PR adds the Sessions tab into Hosts page, and also introduces the sessions table, filtering sessions leader processes from the
logs-endpoint.events.process-default
indice fromEndpoint
integration.It makes reuse of the
<StatefulEventsViewer />
component, and adds thesessions
entityType
to update timelines Search Strategy accordingly with the sessions page needs.It prepares the
session_view
plugin to be consumable for thesecurity_solution
pluginThe Open in Session View button action will be added by @kqualters-elastic in a separate PR: #127520
Issue: #125950
Screenshots
Sessions Table in Hosts Page - Sessions Tab
Sessions Table in Hosts Details Page - Sessions Tab
TODO