-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Security Solution] Add detection rules customization status for telemetry snapshot #237583
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] Add detection rules customization status for telemetry snapshot #237583
Conversation
96cc9de
to
c91b984
Compare
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
c91b984
to
9c5fee8
Compare
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.
@jkelas Thanks for adding a snapshot telemetry for customized fields 🙏
I left some comments and haven't tested the PR yet.
x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_security.json
Outdated
Show resolved
Hide resolved
...api_integration/test_suites/detections_response/utils/rules/prebuilt_rules/customize_rule.ts
Outdated
Show resolved
Hide resolved
...ity/plugins/security_solution/server/usage/detections/rules/get_rule_customization_status.ts
Outdated
Show resolved
Hide resolved
...ity/plugins/security_solution/server/usage/detections/rules/get_rule_customization_status.ts
Outdated
Show resolved
Hide resolved
Created visualization here: https://telemetry-v2-staging.elastic.dev/s/securitysolution/app/dashboards#/view/ed2311c0-4920-4d2a-bebb-b7a5ef18b511?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-7d%2Fd,to:now)) At the moment there is little data. ![]() |
2ba68c0
to
234d324
Compare
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.
@jkelas Thanks for addressing my comments 👍
I've tested the PR locally and it works as expected. The only thing would be nice to have is a comment explaining why we track only specific fields and a link to the details (task or PR on GitHub).
...ity/plugins/security_solution/server/usage/detections/rules/get_rule_customization_status.ts
Show resolved
Hide resolved
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.
LGTM
1dd28b6
to
daca2b0
Compare
/ci |
daca2b0
to
8fe9d70
Compare
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.
8fe9d70
to
7f5b4f3
Compare
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.
Unblocking as all the prior telemetry PRs have been backported correctly
/ci |
@elasticmachine run docs-build |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]
History
cc @jkelas |
7f5b4f3
to
ca4c8b0
Compare
/ci |
@elasticmachine run docs-build |
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.
telemetry schema ✅
Starting backport for target branches: 8.18, 8.19, 9.1, 9.2 |
…metry snapshot (elastic#237583) **Partially addresses: elastic#140369** ## Summary This is another PR from of a series of PRs I am planning to create to cover the requirements in the elastic#140369 ticket. The requirement covered in this PR is: " Breakdown of which fields are being customized." Testing: Display the snapshot: ``` POST kbn:/internal/telemetry/clusters/_stats?apiVersion=2 { "unencrypted": true, "refreshCache": true } ``` Send the snapshot to staging telemetry cluster. ``` POST kbn:/internal/telemetry/force_send?apiVersion=1&elasticInternalOrigin=true {} ``` Co-authored-by: Georgii Gorbachev <georgii.gorbachev@elastic.co> (cherry picked from commit 1f41564)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Partially addresses: #140369
Summary
This is another PR from of a series of PRs I am planning to create to cover the requirements in the #140369 ticket.
The requirement covered in this PR is: " Breakdown of which fields are being customized."
Testing:
Display the snapshot:
Send the snapshot to staging telemetry cluster.