-
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
[Logs UI] Create ML module for log analysis #42872
Merged
jasonrhodes
merged 7 commits into
elastic:master
from
weltenwort:logs-ui-ml-integration-module-definition
Aug 14, 2019
Merged
[Logs UI] Create ML module for log analysis #42872
jasonrhodes
merged 7 commits into
elastic:master
from
weltenwort:logs-ui-ml-integration-module-definition
Aug 14, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weltenwort
added
v8.0.0
Feature:Logs UI
Logs UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
release_note:skip
Skip the PR/issue when compiling release notes
v7.4.0
labels
Aug 7, 2019
Pinging @elastic/infra-logs-ui |
💚 Build Succeeded |
11 tasks
💚 Build Succeeded |
The overrides are recursively merged and therefore additive. Therefore we can't specify the timestamp agg here, because it could not be overridden later with a different field and agg name. It needs to be solely specified at setup time.
💚 Build Succeeded |
…tegration-module-definition
💚 Build Succeeded |
@elastic/ml-ui any feedback you all have or anything else you need from us on this? We are beginning to build the UI that connects to this endpoint and are hoping to test it soon. Thanks! |
💚 Build Succeeded |
walterra
approved these changes
Aug 14, 2019
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.
…tegration-module-definition
💚 Build Succeeded |
jasonrhodes
added a commit
that referenced
this pull request
Aug 14, 2019
* Add ml module with hard-coded timestamp field * Fix data_recognizer test * Parameterize the bucket span normalization * Remove max agg which will be specified during setup The overrides are recursively merged and therefore additive. Therefore we can't specify the timestamp agg here, because it could not be overridden later with a different field and agg name. It needs to be solely specified at setup time.
This was referenced Aug 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature:Logs UI
Logs UI feature
release_note:skip
Skip the PR/issue when compiling release notes
review
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
v7.4.0
v8.0.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This adds an ML module called
logs_ui_analysis
, which contains a job definition to detect anomalies in the log rate.log-entry-rate
analysis_config.bucket_span
data_description.time_field
datafeed-log-entry-rate
:aggregations.buckets.date_histogram.field
aggregations.buckets.date_histogram.fixed_interval
aggregations.buckets.aggregations[timestampField]
aggregations.buckets.aggregations[timestampField].max.field
aggregations.buckets.aggregations.doc_count_per_minute.bucket_script.script.params.bucket_span_in_ms
closes #42593
Implementation notes
doc_count
to one minute using abucket_script
aggregation calleddoc_count_per_minute
. That aggregation is used as thesummary_count_field_name
in the job configuration. The scaling has several advantages:1
in the unit reduce the risk of misinterpretation (doc_count / minute
compared todoc_count / (15 minutes)
.Testing hints
The module can be deployed via a call to Kibana's ML module setup api at
/api/ml/modules/setup/logs_ui_analysis
. ThePOST
requests body needs to specify a few parameters, e.g.: