Skip to content

[ML] Fix Apache ML module manifest query to ignore frozen and cold tiers#2217

Merged
peteharverson merged 2 commits intoelastic:masterfrom
peteharverson:ml-apache-exclude-frozen-tier
Nov 25, 2021
Merged

[ML] Fix Apache ML module manifest query to ignore frozen and cold tiers#2217
peteharverson merged 2 commits intoelastic:masterfrom
peteharverson:ml-apache-exclude-frozen-tier

Conversation

@peteharverson
Copy link
Copy Markdown
Contributor

@peteharverson peteharverson commented Nov 25, 2021

What does this PR do?

The query defined in the json configuration files of anomaly detection modules are run to determine if the module is match for data in the selected index. These queries run over the full time range of the index so can potentially take a long time to return, particularly if searching over documents which are not in the hot or warm data tiers. This PR adds an extra condition to the query to ignore data from the cold and frozen tiers.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • If I'm introducing a new feature, I have modified the Kibana version constraint in my package's manifest.yml file to point to the latest Elastic stack release (e.g. ^7.13.0).

Related issues

elastic/kibana#116696

@peteharverson peteharverson added bug Something isn't working, use only for issues Integration:apache Apache HTTP Server labels Nov 25, 2021
@elasticmachine
Copy link
Copy Markdown

elasticmachine commented Nov 25, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Duration: 15 min 22 sec

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

Copy link
Copy Markdown

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peteharverson peteharverson merged commit d59ee11 into elastic:master Nov 25, 2021
@peteharverson peteharverson deleted the ml-apache-exclude-frozen-tier branch November 25, 2021 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working, use only for issues Integration:apache Apache HTTP Server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants