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

Siem query review #40279

Merged
merged 13 commits into from
Jul 8, 2019
Merged

Siem query review #40279

merged 13 commits into from
Jul 8, 2019

Conversation

stephmilovic
Copy link
Contributor

@stephmilovic stephmilovic commented Jul 3, 2019

Summary

Implemented @cwurm 's query optimization review: https://github.com/elastic/ingest-dev/issues/572
Please cross reference the issue while reviewing this PR.

This includes:

  • replace must clauses in bool queries with filter
  • prefer term over match_phrase to get exact matches
  • several instances where track_total_hits can be false
  • remove unused query parts
  • Misc work in events, tls, and kpi hosts/auth

To manually test:

  • please check functionality of any table whose query was edited

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@stephmilovic stephmilovic added loe:medium Medium Level of Effort Team:SIEM release_note:skip Skip the PR/issue when compiling release notes labels Jul 3, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/secops

@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@cwurm cwurm left a comment

Choose a reason for hiding this comment

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

Amazing work @stephmilovic! I'm so happy by the reduction in code size here. Left two comments in here, and then a few more in https://github.com/elastic/ingest-dev/issues/572.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cwurm cwurm left a comment

Choose a reason for hiding this comment

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

Even more code removed, love it!

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@stephmilovic stephmilovic merged commit 1422fc4 into elastic:master Jul 8, 2019
@stephmilovic stephmilovic deleted the siem-query-review branch July 8, 2019 22:10
stephmilovic added a commit to stephmilovic/kibana that referenced this pull request Jul 8, 2019
stephmilovic added a commit that referenced this pull request Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
loe:medium Medium Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:SIEM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants