-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[index patterns] Index pattern “pattern list” support #87851
Comments
Pinging @elastic/kibana-app-services (Team:AppServices) |
Discover UI changes Disclaimer: WIPPlease provide feedback in the comments :)
|
@stephmilovic I'd like to see this in the browser but while we figure out local setup here are some preliminary comments.
A tooltip on the whole button might be a bit intrusive. I suggest showing the tooltip only when hovering an info icon.
I'd suggest sticking to plain text inside tooltips. EuiBadge feels a bit overkill for this use case.
3.1 If you're showing the info of non-active patterns elsewhere I'd say keep it out of this tooltip that way we keep the content short. 3.2 I would include a space. |
ML uses the index pattern title in a lot of places. We will have to modify these to use a joined When cloning a job we have to guess at which index pattern was originally used, we do this by joining the datafeed indices and matching this against index pattern titles. This could change to just matching the datafeed's indices against the |
Closing in favor of: https://github.com/elastic/security-team/issues/772 |
The Ask
In order to take advantage of runtime fields, the Security Solutions team needs to adopt Kibana Index Patterns. In order to adopt Kibana Index Patterns, the Security Solutions team needs to define a pattern list that will work whether or not the user has the matching indices for each pattern on the list.
The Problem
Currently, a user can create an index pattern with a list of index patterns, ie:
{ title: "filebeat-*,auditbeat-*" }
. Unfortunately, when a user creates a pattern list with a pattern that does not match data{ title: "fake-*,filebeat-*,auditbeat-* "}
, the pattern blows up:The Solution
We are not validating that each pattern on the list matches indices when fetching fields, and the
getFieldsForWildcard
function is not prepared to handle that. We need to handgetFieldsForWildcard
a list of validated, "active" patterns only.index-pattern
saved object to accommodatepatternList
title
remains as a label for the index patterntitle
will be migrated topatternList
from a string to a string array, separated by commas.{ title: "filebeat-*,auditbeat-*" }
becomes{ title: "filebeat-*,auditbeat-*", patternList: ["filebeat-*","auditbeat-*"] }
{ title: "Security Solution Indices", patternList: ["filebeat-*","auditbeat-*"] }
patternList
that do not match data and returnspatternListActive
Usage in other apps that (might) need adjustment:
title
topatternList
increateStaticIndexPattern
([APM] Index pattern: Renametitle
topatternList
#89985)createIndexPattern
method updates to usepatternList
patternList
The text was updated successfully, but these errors were encountered: