-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SecuritySolution][Detections] Allow bulk editing of Rules #86198
Comments
Thanks for raising this @spong, this is sorely needed as is impractical to edit the 300 (default) rules and add a slack or web-hook action, especially so if you have custom rules or multiple installations. Maybe we could have a default notification setting per space? Other things I might want to do en-mass (but could be complicated):
|
As with my organization, we don't like the "cases" features and want to automatically create tickets in JIRA from every Detection Alert, because we need to track SLA's. And there is no setting we can do this by default. Now the only way we can get around this, is by going into each individual rule and create that action to create a ticket in JIRA for over 300 rules and that is ridiculous. |
Is there any updates on this feature request to create a default action for all rules? Is the only way to do this is to use the bulk update actions API and set a regular interval via a script to search for all rules missing actions to have a new action added? |
@Bufferoverflovv, we're starting to make some headway here finally. In
Yeah, this'll be your best bet for the time being. Once we fill out the remaining actions though, you'll be able to use the |
Maybe if someone comes up with a reference script it can be shared in the
repo?
…On Tue, 28 Jun 2022 at 12:08 pm, Garrett Spong ***@***.***> wrote:
@Bufferoverflovv <https://github.com/Bufferoverflovv>, we're starting to
make some headway here finally. In 8.1 (release notes
<https://www.elastic.co/guide/en/security/8.1/whats-new.html#features-8.1>)
we've started surfacing bulk actions for index patterns, tags, and timeline
templates in the UI, and since then we've been working to fill out the
remaining fields like actions, scheduling and so forth. We've had to
coordinate some changes with the platform teams to get this right, but
these remaining actions should start showing up here in a nearterm release.
Is the only way to do this is to use the bulk update actions API and set a
regular interval via a script to search for all rules missing actions to
have a new action added?
Yeah, this'll be your best bet for the time being. Once we fill out the
remaining actions though, you'll be able to use the edit param of the
_bulk_action API (docs
<https://www.elastic.co/guide/en/security/current/bulk-actions-rules-api.html#bulk-edit-object-schema>)
to automate further.
—
Reply to this email directly, view it on GitHub
<#86198 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADL3YHBETLEWPVIXXFJA2LVRJNDHANCNFSM4U6ULFVQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@spong Thanks for the update on this, I actually just noticed some bulk actions are exposed in the UI already which is nice to see. You mentioned in this post https://discuss.elastic.co/t/default-action/276208 that if you had time you would put up some gists with example curl commands for the bulk update api. Do you by any chance have those examples to add an action to all existing rules? |
Oh boy, I forgot about that one -- thanks for the reminder @Bufferoverflovv! 😅 So this gist comes un-tested with no guarantees/warranties, but should be a good place to build from. It fetches all rules (max 10k), then adds the action referenced in the So to use, you'd want to update your username/pass, kibana URL, Hope this helps in the interim! 🙂 |
Closing as this was added in |
Describe the feature:
This feature would allow users to select a number of Rules and edit properties of these Rules in bulk.
Describe a specific use case for the feature:
Use cases are bountiful here, from assigning a default action to all pre-packaged Rules, to updating the underlying index patterns a rule is configured to run against, to selecting a certain group of rules and ensuring their threat tactic & techniques are up to date. Would be worth exploring bulk assignment of exception lists/items as well.
Requested by community: https://discuss.elastic.co/t/default-alert-action/258805
The text was updated successfully, but these errors were encountered: