Forum Discussion

ujalajha's avatar
ujalajha
Microsoft Employee
3 months ago
Solved

How to edit KQL Query in Activator Alert

Hello, 

I have set up an alert on my KQL Query, However I want to edit the query, please let me know how to do so,

Currently I dont see any ways to edit the query, only way seems to be creating new one and deleting existing.

 

  • Hi ujalajha , Thank you for reaching out to the Microsoft Community Forum.

     

    In Fabric KQL Queryset (Activator) alerts, the query is captured at the time the alert is created and isn’t dynamically linked afterward. Because of that, you won’t see an option to edit the query in the existing alert and any changes to the original query won’t reflect in the rule.

     

    So, if you need to update the query, I suggest you create a new alert with the updated query and remove the old one.

  • Hello ujalajha 

    Welcome to this community forum.

    In the KQL Queryset, a time-based activator can be created based on the selected query.

    Unfortunately, once the Activator definition is created, only the condition and action can be altered.

    As stated already, the KQL query cannot be altered in the Activator. Deleting the current Activator definition and creating a new definition based on the updated/fixed KQL query is the only thing you can do.

    The original interval van be taken from the live-feed:

    The context gives away the original projected columns in the KQL query:

    Here, the 'Count' is exposed.

    So, what was the original query, in case it's not available in the KQL Queryset anymore?

    Go to the QueryInsights tab in the related KQL database and see that the same function is called using that interval:

    Notice that the application is marked as 'Data Activator'.

    This should be sufficient to recreate and update an obsolete Activator definition. 

    --

    If this answer helps you, a thumbs-up or marking it as the accepted answer is appreciated. All community members with similar questions will benefit by doing so. Your contribution is highly appreciated.

4 Replies

  • v-hashadapu's avatar
    v-hashadapu
    Community Support

    Hi ujalajha , Thank you for reaching out to the Microsoft Community Forum.

     

    In Fabric KQL Queryset (Activator) alerts, the query is captured at the time the alert is created and isn’t dynamically linked afterward. Because of that, you won’t see an option to edit the query in the existing alert and any changes to the original query won’t reflect in the rule.

     

    So, if you need to update the query, I suggest you create a new alert with the updated query and remove the old one.

  • v-hashadapu's avatar
    v-hashadapu
    Community Support

    Hi ujalajha , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

  • Hello ujalajha 

    Welcome to this community forum.

    In the KQL Queryset, a time-based activator can be created based on the selected query.

    Unfortunately, once the Activator definition is created, only the condition and action can be altered.

    As stated already, the KQL query cannot be altered in the Activator. Deleting the current Activator definition and creating a new definition based on the updated/fixed KQL query is the only thing you can do.

    The original interval van be taken from the live-feed:

    The context gives away the original projected columns in the KQL query:

    Here, the 'Count' is exposed.

    So, what was the original query, in case it's not available in the KQL Queryset anymore?

    Go to the QueryInsights tab in the related KQL database and see that the same function is called using that interval:

    Notice that the application is marked as 'Data Activator'.

    This should be sufficient to recreate and update an obsolete Activator definition. 

    --

    If this answer helps you, a thumbs-up or marking it as the accepted answer is appreciated. All community members with similar questions will benefit by doing so. Your contribution is highly appreciated.

  • v-hashadapu's avatar
    v-hashadapu
    Community Support

    Hi ujalajha , Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.