Skip to content

[EUI][Data] - Add index field selectors to EUI or Data #94875

@yctercero

Description

@yctercero

Describe the feature:

Currently the security solutions team is working to move exception list UI into the lists plugin. In doing so, it's clear that a number of areas use similar components and that similar components exist within other plugins like data. I'll try to dig into the shared functionality and areas where it's being used as best I can to demonstrate that a streamlined component could be useful.

With the RAC initiative (unified alerting experience), these components will start being used in other plugins like observability.

Describe a specific use case for the feature:
Below are some of the areas in which this component shows up. data plugin has had a version for a while. When we were building out exceptions we chose not to use theirs because we weren't able to customize which operators could be used and it didn't have support for nested fields (at least not displayed the way we wanted).

Common functionality

  • Pass an index pattern into component that determines what fields to show in the initial selector
  • Operators - not all use multiple operators or the same operators, but all do have the same basic principle some field is some value
  • Value selection includes autocomplete
    • This is where I think maybe it's a better component to be maintained in data possibly?
  • Allows multiple of these to be AND-ed or OR-ed in some cases it's logic that is abstracted. Adding filters for example, it has you do one at a time as opposed to allowing the user to explicitly AND it

Exceptions

  • Code is being moved into the lists plugin

Screen Shot 2021-03-17 at 3 08 43 PM

Example of exceptions with nested

Screen Shot 2021-03-17 at 3 22 16 PM

Indicator Match Rule

  • Exceptions code was forked and lives within security solution

Screen Shot 2021-03-17 at 3 09 51 PM

Trusted Apps

  • Exceptions code was forked and lives within security solution

Screen Shot 2021-03-17 at 3 11 08 PM

Adding a Filter

  • Code from data plugin

Screen Shot 2021-03-17 at 3 09 38 PM

Severity Override

  • Left a copy of the autocomplete components

Screen Shot 2021-03-17 at 3 10 33 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    EUITeam: SecuritySolutionSecurity Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Team:Detection EngineSecurity Solution Detection Engine Areaeffort:highimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.loe:smallSmall Level of Effortvalue:low

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions