-
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
[Discover] Add selector syntax support to log source profile #206937
[Discover] Add selector syntax support to log source profile #206937
Conversation
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
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.
Nice update and great refactor of the createRegExpPatternFrom
utility 👏
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.
The code changes LGTM and it works well! Thanks for addressing it.
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
cc @weltenwort |
Starting backport for target branches: 8.x /~https://github.com/elastic/kibana/actions/runs/12868406785 |
…#206937) This adds support for the new selector syntax to the log source profile heuristics. It will only match when index name expression exclusively contains implicit or explicit `data` selectors. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 032c481)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…206937) (#207190) # Backport This will backport the following commits from `main` to `8.x`: - [[Discover] Add selector syntax support to log source profile (#206937)](#206937) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](/~https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Felix Stürmer","email":"weltenwort@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-01-20T12:50:32Z","message":"[Discover] Add selector syntax support to log source profile (#206937)\n\nThis adds support for the new selector syntax to the log source profile\r\nheuristics. It will only match when index name expression exclusively\r\ncontains implicit or explicit `data` selectors.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"032c481ec17e5b4bed83830a34a5c00834ec7116","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","v9.0.0","backport:prev-minor","Team:obs-ux-logs"],"title":"[Discover] Add selector syntax support to log source profile","number":206937,"url":"/~https://github.com/elastic/kibana/pull/206937","mergeCommit":{"message":"[Discover] Add selector syntax support to log source profile (#206937)\n\nThis adds support for the new selector syntax to the log source profile\r\nheuristics. It will only match when index name expression exclusively\r\ncontains implicit or explicit `data` selectors.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"032c481ec17e5b4bed83830a34a5c00834ec7116"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"/~https://github.com/elastic/kibana/pull/206937","number":206937,"mergeCommit":{"message":"[Discover] Add selector syntax support to log source profile (#206937)\n\nThis adds support for the new selector syntax to the log source profile\r\nheuristics. It will only match when index name expression exclusively\r\ncontains implicit or explicit `data` selectors.\r\n\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"032c481ec17e5b4bed83830a34a5c00834ec7116"}}]}] BACKPORT--> Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
📝 Summary
This adds support for the new selector syntax to the log source profile heuristics. It will only match when index name expression exclusively contains implicit or explicit
data
selectors.🎨 Previews
🕵️♀️ How to test
Enable the failure store on logs indices:
Then ingest some failing log documents using synthtrace:
kbn-synthtrace --live failed_logs.ts
Create data views with various selectors an "Observability" space to see the effect.
Due to limitations in the ES|QL parser this can't be tested in ES|QL mode right now, even though the change should already apply there as well.