-
Notifications
You must be signed in to change notification settings - Fork 334
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
[Feature Request] Dynamic Routing of Alerts to Output #1075
Comments
This is a great feature idea. We also have the (upcoming) requirement of dynamic routing based upon AWS Accounts. What do you think of the following 2 solutions: Solution 1,
|
so i like the new dynamic_outputs (solution 1) a lot more. Its less confusing and the intention is obvious from the get go. The example you gave is very similar to what we have to do with alerts. I think the main thing to consider is the ordering of what is called first, personally i think this order is best:
Also, if we add a new dynamic_outputs, should we then consider the ability to ask the user for additional outputs when configuring a slack channel? Ie, i can just put the descriptor and url multiple times from one call to the ./manage.py output slack (this is more of the detail, but the lookup tables are the major feature that allows for this type of stuff) Edit: Also i like the separation because i know i always want to send alerts to one specific place (central security team), but dynamically send them to the owners of the account |
When I had a need for something similar to this previously (#416), we had a requirement that under some circumstances the alert went to multiple locations. Specifically, all alerts would go to the security team, but if the alert was for a certain production AWS account, it would additionally go to the production team (so we didn't have the security team acting as a middle man for this important account). I think it would be useful to consider that use case for this. |
@0xdabbad00 maybe for the
@jack1902 I agree with the ordering. In my suggested implementation, we'd be passing in a function reference, which only gets executed when |
@Ryxias Noted, i see where it would be called now :D. Also i like the idea of |
Closing as work is now merged |
Background
I would like to configure one output on a rule but have it send to different destinations based on something inside the alert. (Eg, account "a" slack channel a, account "b" slack channel "b")
NOTE: Before filing this issue, please consider the following:
Have you tried pinging us on Slack?
https://streamalert.herokuapp.com/
Are you on the latest version of StreamAlert?
Description
I would like to write one rule, and have that route the alert to an output based on information within the alert.
The current way i am thinking of implementing this is to use the context field and have a placeholder output, such as "slack:placeholder".
This would be amazing, as using matchers is relevant most of the time but not in a case when you want a rule to trigger regardless of the account, but only notify the team that owns it. (I don't like the idea of notifying people who don't need to be notified)
The text was updated successfully, but these errors were encountered: