-
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] Create screen to set up analysis ML jobs #43413
Conversation
…uirement filtering check
…hook' into 41877-ml-setup-screen
Pinging @elastic/infra-logs-ui |
💔 Build Failed |
I've taken a look at the request failures you were seeing. For the most part these were just small syntax errors (with This was the error coming back in relation to that:
However, this did lead me to uncover a potential problem once the syntax issues were fixed. I started to get this error:
this is with the API sending a string of @jgowdyelastic does |
x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/infra/public/pages/logs/analysis/page_setup_content.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
Looking at the elasticsearch ML APIs, a datafeed error occurs on
It seems to me that the Kibana ML setup process should split the string it receives for Note, in order for the ML analysis results to be meaningful for an event rate analysis, for this single search the resulting documents require the same time field throughout. |
@sophiec20 if this example works, can we just split our string on commas before we send it? That would be a very easy thing for us to do, even if ML eventually splits on commas too. |
Ah I think I understand now -- we don't call the datafeeds endpoints, we call the module endpoint, so this isn't something we can fix on our end. |
#43686 created to enable the use of a comma separated index pattern in the |
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import * as rt from 'io-ts'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can someone explain to me why io-ts gets called rt
?
@jgowdyelastic Awesome, thank you! |
Just pushed the change here for ensuring the sample data index doesn't get passed to the ML setup. |
} else { | ||
return indexPattern; | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this work with a filter()
too? If so that might be easier to follow later when we want to remember what this does and safely rip it out ... maybe it's just me but I always forget how indices and -1
and Array#splice all work :P
return indices.filter(index => index !== SAMPLE_DATA_INDEX).join(',')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I'll change this on the "cleanup / bug fixing" PR so I don't need to trigger another build cycle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💚 Build Succeeded |
* Add empty analysis tab * Add ml capabilities check * Add job status checking functionality * Add a loading page for the job status check * Change types / change method for deriving space ID / change setup requirement filtering check * Use new structure * Add module setup to log analysis jobs hook * Add ID to path * [Logs UI] Add analyis setup landing screen * Add function to set up ML module on click * Use partial type for start and end props * Add start and end time selection * Fix syntax * Change seconds timestamp to ms * Update wording * Use FormControlLayout to clear datepickers * Update wording about earlier start date * Remove specific point in time wording * Fix typechecking * Reload analysis page on successful job creation * Add error handling for setup failure * Update description ton of feature to reflect 7.4 feature set * Add toggleable default message * Revert to EuiFormControlLayout until eui changes are pushed * Remove sample data index if user has it set
* Add empty analysis tab * Add ml capabilities check * Add job status checking functionality * Add a loading page for the job status check * Change types / change method for deriving space ID / change setup requirement filtering check * Use new structure * Add module setup to log analysis jobs hook * Add ID to path * [Logs UI] Add analyis setup landing screen * Add function to set up ML module on click * Use partial type for start and end props * Add start and end time selection * Fix syntax * Change seconds timestamp to ms * Update wording * Use FormControlLayout to clear datepickers * Update wording about earlier start date * Remove specific point in time wording * Fix typechecking * Reload analysis page on successful job creation * Add error handling for setup failure * Update description ton of feature to reflect 7.4 feature set * Add toggleable default message * Revert to EuiFormControlLayout until eui changes are pushed * Remove sample data index if user has it set
Summary
Closes #41877
Based on #43050
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers