-
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
Exclude non-persisted sessions from SO migration #96938
Exclude non-persisted sessions from SO migration #96938
Conversation
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.
Haven't tested it, but code lgtm
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.
Tested, looks good,
I created a 7.12.0 cluster locally and generated sessions there.
Then I run from the source of the branch and tested that only "persisted:true" sessions were migrated to the new kibana index.
I tested only the default migration mechanism (I assume this was v2)
Just a note: old sessions are not deleted. They stay in the old index. I assume this is expected
Pinging @elastic/kibana-core (Team:Core) |
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: |
(cherry picked from commit bfd5b7b)
…sted sessions (#96938) (#96892) * Migrations v2 ignore fleet agent events (#96690) * migrationsv2: ignore fleet agent events and tsvb telemetry * migrationsv1: ignore tsvb-validation-telemetry * Skip fleet test that depends on fleet-agent-events * Fix typescript errors Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # src/core/server/saved_objects/migrationsv2/integration_tests/actions.test.ts * Correctly fix merge conflicts * Skip failing fleet-agent-events tests * Skip security solution endpoint telemetry tests depending on fleet-agent-events so's * Exclude non-persisted sessions from SO migration (#96938) (cherry picked from commit bfd5b7b) * use `any` for estypes.QueryContainer Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
Summary
Related to #96131
Exclude non persisted (
search-session.persisted: false
) search sessions (type: 'search-session'
) during SO migrationChecklist