-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Anayltics Rules - kql should have access to Query scheduling settings (run query/lookup data values) #11186
Comments
Hi @JiTmun, Thanks for flagging this issue, we will investigate this issue and get back to you with some updates. Thanks! |
Hi @JiTmun, If you are referring to a different issue other than the information above, please provide detailed information about your issue. |
I know, but if you create a use case which should raise an alert each hours if the same behaviour has not been seen on the past 14d, you must set the scheduling settings in your screenshot with:
You also need to hardcode it in the query itself, because by default a kql get all the data for the period now() to "Lookup data for the last". Without harcoding it, a rule running every hour with data on the past 14d could generate an incident every hours for 14days. ( The goal would be to only set Scheduling settings in the GUI like as in you screenshot, and use some placeholders in the kql to point to the defined scheduling settings.
|
Hi @JiTmun, Thank you for your suggestion. We understand the convenience of having placeholders for scheduling settings in KQL. However, at this time, it is not possible, as a workaround, you can define scheduling settings in the GUI and reference them in your KQL queries manually. closing this issue now, if you still need support for this issue, feel free to re-open it any time. Thank you for your co-operation |
Is your feature request related to a problem?
When an analytic rule has a "run Query" different than the "lookup data", we need to hardcode the same values into the kql, which is error prone.
Describe the solution you'd like
A kql when evaluated by sentinel should have access to scheduling its analytic rule scheduling settings, like a kind of environnement variable.
Workbooks already have a similar feature to call workbook parameters into kqls, cf here
Describe alternatives you've considered
for now I first define Scheduling settings in the GUI
Then my KQLs looks like;
The text was updated successfully, but these errors were encountered: