-
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
[Logs UI] ML job creation fails when any sub-pattern fails to match #48219
Comments
Pinging @elastic/infra-logs-ui (Team:infra-logs-ui) |
Regarding the acceptance, what should happen if the user selects both indices in the form but only one of them is present? Should it still fail or continue with the analysis with the existing data? |
The creation will fail since ML requires every sub-pattern to match at least one index with at least one document. The error message will point it out. That's exactly the point of the proposed solution, to give the user the option to deselect the patterns that don't match anything. elastic/elasticsearch#48056 aims to relax that requirement on the ML side so it hopefully will be possible to include empty indices in the datafeed config at some point. |
This fixes #48219 by adding the option for the user to select a subset of the configured log indices during the setup process. It also surfaces the errors returned by Kibana when the setup fails.
…tic#48231) This fixes elastic#48219 by adding the option for the user to select a subset of the configured log indices during the setup process. It also surfaces the errors returned by Kibana when the setup fails.
…tic#48231) This fixes elastic#48219 by adding the option for the user to select a subset of the configured log indices during the setup process. It also surfaces the errors returned by Kibana when the setup fails.
Problem description
The ML job creation uses the index name pattern specified in the configuration of the log source the user currently views. This includes by default the
filebeat-*
as well as thekibana_sample_data_logs
index. If either don't exist or are empty, the job setup fails.The chances for that are pretty high for two common scenarios:
filebeat-*
and just wants to enable analysis.Proposed solution
Let the user choose a subset of index name patterns on setup to adapt to the use-case.
Acceptance criteria
The text was updated successfully, but these errors were encountered: