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

Edit max_signals field for custom rules in UI and API #5029

Closed
3 tasks done
Tracked by #174168
dplumlee opened this issue Apr 1, 2024 · 2 comments
Closed
3 tasks done
Tracked by #174168

Edit max_signals field for custom rules in UI and API #5029

dplumlee opened this issue Apr 1, 2024 · 2 comments
Assignees
Labels
Docset: ESS Issues that apply to docs in the Stack release Docset: Serverless Issues for Serverless Security Feature: Rules Team: Detections/Response Detections and Response v8.15.0

Comments

@dplumlee
Copy link
Contributor

dplumlee commented Apr 1, 2024

Description

We're implementing a new field in the rule creation/editing and rule details UI for max_signals (The max amount of alerts that will be written per run). This field is restricted to a lower limit of 1 and gives a warning above the upper limit of whatever the alerting config setting xpack.alerting.rules.run.alerts.max is set to (defaults to 1000). The max_signals value defaults to 100 unless xpack.alerting.rules.run.alerts.max is below 100, then it defaults to that value. This addition doesn't affect any of the existing API schemas as max_signals is already a defaultable field, we're just now exposing it to the UI.

Importantly, in the rule executors themselves, we will use the rule's max_signals value UNLESS it is more than xpack.alerting.rules.run.alerts.max in which case we will use that value and log a warning in the detection engine that the max_signals value has been effectively overridden by the baseline config limit

Background & resources

Which documentation set does this change impact?

ESS and serverless

ESS release

8.15

Serverless release

Tues May 14, 2024

Feature differences

The feature is identical in ESS and serverless

API docs impact

No APIs have been changed other than now enforcing certain validations that would have broken rules in the past. Now we return 400 errors when a rule is created/edited with a max_signals value less than 1.

Prerequisites, privileges, feature flags

No response


Pull Requests

Preview Give feedback
@joepeeples
Copy link
Contributor

joepeeples commented Apr 29, 2024

elastic/kibana#179680 is still unmerged, so we won't be publishing serverless docs for this this week. Adjusting to next week (Tues May 7).

@joepeeples joepeeples changed the title [Request] Ability to edit max_signals field for custom rules in UI and API Edit max_signals field for custom rules in UI and API Apr 29, 2024
@joepeeples
Copy link
Contributor

joepeeples commented May 6, 2024

Pushed back one more week; feature didn't make this week's cutoff.

Also, follow-up dev PR will potentially hard-code a limit of 1000 alerts:

This will affect serverless & ESS docs in different ways. Serverless should mention the limit, and that's it. ESS should mention the limit in relation to how max_signals and xpack.alerting.rules.run.alerts.max interact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docset: ESS Issues that apply to docs in the Stack release Docset: Serverless Issues for Serverless Security Feature: Rules Team: Detections/Response Detections and Response v8.15.0
Projects
None yet
Development

No branches or pull requests

3 participants