Skip to content
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

Create index pattern in "Create threat detector" flow #722

Open
xeniatup opened this issue Sep 18, 2023 · 3 comments
Open

Create index pattern in "Create threat detector" flow #722

xeniatup opened this issue Sep 18, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@xeniatup
Copy link

Is your feature request related to a problem?
A user who is investigating a security finding should not have to provide an index pattern to see surrounding documents. Creating an index pattern can be handled upstream, at the time of creating a detector.

Current experience
Kapture 2023-09-18 at 15 55 31

What solution would you like?
An index pattern should be created automatically for the data source (indexes or wildcard pattern) selected at the time of creating a threat detector.
There are three potential cases:

  1. An index pattern already exists for the data source - the section for creating a new index pattern is hidden
  2. There is no index pattern doesn't exists, and there is just one time field in the data source - an index pattern can be created behind the scenes with a default name and time field.
  3. There is no index pattern exists and there are multiple time fields - the "Index pattern" section is shown on the "Review" page of "Create detector" flow with the index pattern name prefilled and the selection of the time fields.
Screenshot 2023-09-18 at 4 00 39 PM

What alternatives have you considered?
Creating an index pattern with the default name and time fields as part of "View findings details -> View surrounding documents" workflow.

@xeniatup xeniatup added enhancement New feature or request untriaged labels Sep 18, 2023
@kgcreative
Copy link
Member

Keep in mind that Index Patterns are dashboards saved objects, so if you're creating a detector via the API, you wouldn't have awareness of index patterns. This may need to be an associated index pattern (similar to how we do associated detectors in a visualization). For the index pattern, I suggest exploring "Select existing" and "Create new" as options as well. There may be an index pattern in the system that already covers the given index in the detector.

@xeniatup
Copy link
Author

We currently detect the associated index patterns automatically (selecting the first available one) and proceed from there. The modal appears when there is no index pattern associated.

@dblock dblock removed the untriaged label Jun 6, 2024
@dblock
Copy link
Member

dblock commented Jun 6, 2024

[Triage -- attendees 1, 2, 3, 4, 5, 6, 7]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants