Query Details
# Summary Rules - Unique Actions ## Query Information #### Description This summary rule saves all unique actions and how often they appear in your environment to the custom table or your choice. This allows for easy retrieval of statistics and trends on how many unique actions are found in the environment each day. **Recommended Schedule:** 24 hours. **Recommended Delay:** 60 minutes. #### References - https://learn.microsoft.com/en-us/azure/sentinel/summary-rules ## Sentinel ```KQL let StartDate = startofday(ago(1d)); let EndDate = startofday(now()); union * | extend Action = coalesce(Operation, OperationName, OperationNameValue, ActionType) | where isnotempty(Action) | summarize TotalEvents = count() by Type, Action | extend RetrievalDate = StartDate | sort by Type ```
This query is designed to collect and save all unique actions that occur in your environment, along with how frequently they happen, into a custom table. This helps in easily tracking statistics and trends of unique actions on a daily basis.
Operation, OperationName, OperationNameValue, ActionType).RetrievalDate) indicating when the data was collected.This setup helps in maintaining a daily log of unique actions and their frequencies, which can be useful for monitoring and analyzing trends over time.

Bert-Jan Pals
Released: September 3, 2024
Tables
Keywords
Operators