Skip to content

[9.1] [Detections Response] Extended rule usage telemetry (#224968)#226304

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-224968
Jul 2, 2025
Merged

[9.1] [Detections Response] Extended rule usage telemetry (#224968)#226304
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-224968

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

## Summary

Addresses elastic/security-team#12856

Product wanted more granular information on custom rule usage. We have
information on number of different rule types, total custom and total
prebuilt, but there isn't a clear snapshot of the custom rules broken
out by rule type. The existing rule type usage includes both prebuilt
and custom.

### Sample

<img width="342" alt="Screenshot 2025-06-23 at 2 40 59 PM"
src="https://github.com/user-attachments/assets/3dcb3fe0-5251-489f-bf3b-d762e57ab597"
/>

### How to test

You can run `cd
x-pack/solutions/security/plugins/security_solution/scripts/endpoint &&
yarn test:generate` to generate some test data.

- Create some rules of different types
- Add some exceptions
- Add some rules with suppression
- Try adding a few prebuilt rules of different rule types
- Visit Stack Management > Advanced Settings > Global settings > Usage
Collection > Click on the link `cluster data`
- Values of `[rule_type]_custom` should only reflect numbers for custom
rules, not prebuilt

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit f282c4d)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jul 2, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) July 2, 2025 20:28
@kibanamachine kibanamachine merged commit 2fd86df into elastic:9.1 Jul 2, 2025
14 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @yctercero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants