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

[Security Solution][Detection Engine] adds preview logged requests for new terms, threshold, query, ML rule types #203320

Open
wants to merge 43 commits into
base: main
Choose a base branch
from

Conversation

vitaliidm
Copy link
Contributor

@vitaliidm vitaliidm commented Dec 6, 2024

Summary

  • partially addresses [Security Solution][Detection Engine] add request logging on preview for the rest of rule types #202545 (except of IM rule type)
  • extends logged requests preview for:
    • New terms
    • Query
    • ML
    • Threshold
  • For Threshold, Query, New terms rule type introduced Page view, where each loop of rule execution is presented as a separate page
  • Only first 2 search queries requests of each type are logged for performance reasons(rule can have very a large and multiple requests). That's why property request was made not mandatory in rule_preview.schema.yaml

DEMO

Screen.Recording.2025-01-22.at.18.33.10.mov

@vitaliidm vitaliidm self-assigned this Dec 6, 2024
@vitaliidm vitaliidm added v9.0.0 Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. release_note:feature Makes this part of the condensed release notes Team:Detection Engine Security Solution Detection Engine Area backport:version Backport to applied version labels v8.18.0 labels Dec 6, 2024
# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_types/utils/logged_requests/log_search_request.test.ts
#	x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_types/utils/logged_requests/log_search_request.ts
@elasticmachine
Copy link
Contributor

elasticmachine commented Jan 22, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Serverless Detection Engine - Security Solution Cypress Tests #1 / Detection rules, preview does not support preview logged requests does not show preview logged requests checkbox fro Indicator Match rule does not show preview logged requests checkbox fro Indicator Match rule
  • [job] [logs] Detection Engine - Security Solution Cypress Tests #3 / Detection rules, preview does not support preview logged requests does not show preview logged requests checkbox fro Indicator Match rule does not show preview logged requests checkbox fro Indicator Match rule

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 6602 6604 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 21.3MB 21.3MB +1.6KB
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 573 575 +2

Total ESLint disabled count

id before after diff
securitySolution 656 658 +2

History

cc @vitaliidm

@vitaliidm vitaliidm changed the title [Security Solution][Detection Engine] adds preview logged requests for the rest of rules [Security Solution][Detection Engine] adds preview logged requests for new terms, threshold, query, ML rule types Jan 23, 2025
@vitaliidm vitaliidm marked this pull request as ready for review January 23, 2025 12:14
@vitaliidm vitaliidm requested review from a team as code owners January 23, 2025 12:14
@vitaliidm vitaliidm requested review from rylnd and dplumlee January 23, 2025 12:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-engine (Team:Detection Engine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:feature Makes this part of the condensed release notes Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants