[Logs Explorer] Add settings for Logs Explorer features#178602
[Logs Explorer] Add settings for Logs Explorer features#178602tonyghiani merged 21 commits intoelastic:mainfrom
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
| export const buildIndexPatternRegExp = (basePatterns: string[]) => { | ||
| // Create the base patterns union with strict boundaries | ||
| const basePatternGroup = `\\b(${basePatterns.join('|')})\\b[^,\\s]+`; | ||
| const basePatternGroup = `\\b(${basePatterns.join('|')})\\b([^,\\s]+)?`; |
There was a problem hiding this comment.
note: update the regex also to match standalone indices with no wildcard patterns.
| }; | ||
| } | ||
|
|
||
| testAgainstAllowedList(allowedList: string[]) { |
There was a problem hiding this comment.
note: I opted for an approach where a setting preference is not coupled to this entity to make decisions on the user journey flow. Ideally, we'll conditionally be able to make decisions against a data view based on any setting passed, without affecting the inner shape of this entity.
There was a problem hiding this comment.
note: Just moved some code from the state machine config into a service module, nothing new here on the implemented logic.
|
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
|
/oblt-deploy |
maryam-saeidi
left a comment
There was a problem hiding this comment.
Added OBSERVABILITY_LOGS_EXPLORER_ALLOWED_DATA_VIEWS_ID serverless setting LGTM!
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
…209120) ## 📓 Summary Removes the `observability:logsExplorer:allowedDataViews` advanced setting that was introduced by #178602 as Logs Explorer is [no longer available](#203685) in Serverless and 9.0. Closes #209092 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…lastic#209120) ## 📓 Summary Removes the `observability:logsExplorer:allowedDataViews` advanced setting that was introduced by elastic#178602 as Logs Explorer is [no longer available](elastic#203685) in Serverless and 9.0. Closes elastic#209092 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 3e5f55d)
…ting (#209120) (#210005) # Backport This will backport the following commits from `main` to `9.0`: - [Remove observability:logsExplorer:allowedDataViews advanced setting (#209120)](#209120) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Giorgos Bamparopoulos","email":"georgios.bamparopoulos@elastic.co"},"sourceCommit":{"committedDate":"2025-02-06T13:28:00Z","message":"Remove observability:logsExplorer:allowedDataViews advanced setting (#209120)\n\n## 📓 Summary\r\nRemoves the `observability:logsExplorer:allowedDataViews` advanced\r\nsetting that was introduced by\r\nhttps://github.com//pull/178602 as Logs Explorer is [no\r\nlonger available](#203685) in\r\nServerless and 9.0.\r\n\r\nCloses https://github.com/elastic/kibana/issues/209092\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3e5f55dd0258646d976d776127e39bdb04859568","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:version","v9.1.0"],"title":"Remove observability:logsExplorer:allowedDataViews advanced setting","number":209120,"url":"https://github.com/elastic/kibana/pull/209120","mergeCommit":{"message":"Remove observability:logsExplorer:allowedDataViews advanced setting (#209120)\n\n## 📓 Summary\r\nRemoves the `observability:logsExplorer:allowedDataViews` advanced\r\nsetting that was introduced by\r\nhttps://github.com//pull/178602 as Logs Explorer is [no\r\nlonger available](#203685) in\r\nServerless and 9.0.\r\n\r\nCloses https://github.com/elastic/kibana/issues/209092\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3e5f55dd0258646d976d776127e39bdb04859568"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209120","number":209120,"mergeCommit":{"message":"Remove observability:logsExplorer:allowedDataViews advanced setting (#209120)\n\n## 📓 Summary\r\nRemoves the `observability:logsExplorer:allowedDataViews` advanced\r\nsetting that was introduced by\r\nhttps://github.com//pull/178602 as Logs Explorer is [no\r\nlonger available](#203685) in\r\nServerless and 9.0.\r\n\r\nCloses https://github.com/elastic/kibana/issues/209092\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>","sha":"3e5f55dd0258646d976d776127e39bdb04859568"}}]}] BACKPORT--> Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
…lastic#209120) ## 📓 Summary Removes the `observability:logsExplorer:allowedDataViews` advanced setting that was introduced by elastic#178602 as Logs Explorer is [no longer available](elastic#203685) in Serverless and 9.0. Closes elastic#209092 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>


📓 Summary
Closes #177703
This work supports a new Logs Explorer UI setting to customize the data view patterns which allow to browse data views directly in Logs Explorer. It's a follow-up work of #176078, where we introduced a way to recognise logs-backed data views and explore their entires without redirecting to Discover.
The previously hard-coded list of allowed patterns (
logs, auditbeat, filebeat, winbeat) is now used as the default value for the UI setting "Logs Explorer allowed data views", where is possible to add more base patterns or full indices that should be available for exploration in Logs Explorer.🎥 Demo
demo.mov
👣 Next steps