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

Packaged alerts #67293

Open
mikecote opened this issue May 25, 2020 · 6 comments
Open

Packaged alerts #67293

mikecote opened this issue May 25, 2020 · 6 comments
Labels
blocked estimate:needs-research Estimated as too large and requires research to break down into workable issues Feature:Alerting NeededFor:Detections and Resp Project:ImproveAlertingGettingStartedUX Alerting team project for making the experience of getting started with alerting easier. R&D Research and development ticket (not meant to produce code, but to make a decision) Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@mikecote
Copy link
Contributor

mikecote commented May 25, 2020

Could we add pre-packaged alerts to the packaging system? People can create alerts and rules as much as they want and share them. There has been questions about if alerting can integrate with EPM to allow users to share alerts. We'll use this issue to research and expand on that.

EPM: #36708

@mikecote mikecote added Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels May 25, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@mikecote mikecote changed the title Alerting to integrate with EPM Packaged alerts May 25, 2020
@pmuellr
Copy link
Member

pmuellr commented Jun 4, 2020

I've been thinking of this as a set of alert param values and fill-in-the-blank values, targeted to specific alert types, for a specific package. Eg, for apache logs, there's probably a set of parameters that could be filled in automatically for a log alert, but there will also be values that the user will have to need to specify or customize.

I'm not sure where these would fit in the UI - it seems like a solution-specific thing, especially for alerts that are intended to be created in a solution.

Seems like alerting should handle the infrastructure part of this - getting these alert "templates", allowing solutions to find them, making it easy for them to create these alerts from the template.

If there aren't any customizable values, we could avoid using an existing alert editor to create these, a customer could "select" one and then have the alert created - I'm guessing there will almost always be some customization anyway.

Customers would still have to attach actions - I don't think these can be "templated".

I'm also hoping we can do this without having a notion of "preconfigured" alerts, as we still have issues getting a user and space associated with the alert. Seems like we can start with a "it's still a manual process, but easier than starting from scratch".

@pmuellr
Copy link
Member

pmuellr commented Jun 10, 2020

Customers would still have to attach actions - I don't think these can be "templated".

Something that could potentially help here, would be a way for an existing connector (or connectors) to be marked as "default" or "default for packaged alerts". We could then just add these to the alert directly without user interaction, but we would need to have all the action params filled in. Perhaps we'd just use this as a way to pre-populate the UI with these actions, but still require the user to "fill in the blanks" (eg, for email, setting the "to" addressee field).

@mikecote mikecote added the loe:needs-research This issue requires some research before it can be worked on or estimated label Aug 6, 2020
@mikecote mikecote added R&D Research and development ticket (not meant to produce code, but to make a decision) and removed loe:needs-research This issue requires some research before it can be worked on or estimated labels Aug 26, 2020
@pmuellr
Copy link
Member

pmuellr commented Nov 20, 2020

Just had a brain fart, somewhat based on issue #50266 , which shares some similarities. Basically, how can we allow alerting resources to be recreated, when there are cases that a user needs to be involved to set API keys, etc.

Packaged alerts are kinda similar - perhaps - in that we'd like to make it easy to "import" alerts (not actions) from an elastic package, but since we won't know the alert param settings the customer wants, nor the actions they might want, we don't really want these "live". Hence my suggestion above regarding "templates".

In lieu of templates, it seems like we could arrange for packaged alerts to be "imported" from a package, but make them disabled upon creation. We'd need some defaults for alert parameters - maybe - in #50266 there is mention of allowing actions to be disabled which would also not run the validation on the params - perhaps we could do similar for alerts and leave the parms undefined. In any case, coming up with default values is probably not hard.

But the alert would be disabled, so a customer would need to enable it, which would then get the ownership set correctly (in case it was somehow automatically imported via the system). But it also wouldn't run immediately, with those "default" parameters, and give the customer a chance to set them as appropriate before enabling the alert.

To get an idea of how these packages work, see: https://github.com/elastic/integrations/tree/master/packages , and poke through one of those integrations you are familiar with - for me apache logs - and then look in the kibana directory.
Eg https://github.com/elastic/integrations/tree/master/packages/apache/kibana

You can imagine a new directory there alerts, which would have a number of alert SO templates in it, which we would then arrange to create actual alerts from.

@mikecote
Copy link
Contributor Author

mikecote commented Feb 4, 2021

Moving from 7.x - Candidates to 8.x - Candidates (Backlog) after the latest 7.x planning session.

@gmmorris gmmorris added NeededFor:Detections and Resp Project:ImproveAlertingGettingStartedUX Alerting team project for making the experience of getting started with alerting easier. labels Jun 30, 2021
@gmmorris gmmorris added the loe:needs-research This issue requires some research before it can be worked on or estimated label Jul 14, 2021
@YulNaumenko
Copy link
Contributor

@arisonl we need a detail problem statement from you and marking this as blocked till that.

@gmmorris gmmorris added the estimate:needs-research Estimated as too large and requires research to break down into workable issues label Aug 18, 2021
@gmmorris gmmorris removed the loe:needs-research This issue requires some research before it can be worked on or estimated label Sep 2, 2021
@kobelb kobelb added the needs-team Issues missing a team label label Jan 31, 2022
@botelastic botelastic bot removed the needs-team Issues missing a team label label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked estimate:needs-research Estimated as too large and requires research to break down into workable issues Feature:Alerting NeededFor:Detections and Resp Project:ImproveAlertingGettingStartedUX Alerting team project for making the experience of getting started with alerting easier. R&D Research and development ticket (not meant to produce code, but to make a decision) Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
No open projects
Development

No branches or pull requests

6 participants