MDA IP Address Type
Query
CloudAppEvents
| where isnotempty(IPAddress)
| summarize count() by IPCategory
| extend IPCategory = iff(isempty(IPCategory),IPCategory="Normal",IPCategory)Explanation
This KQL (Kusto Query Language) query is analyzing data from a table called CloudAppEvents. Here's a breakdown of what it does, in simple terms:
-
Filter for Non-Empty IP Addresses: It starts by filtering the data to include only those records where the
IPAddressfield is not empty. -
Count Events by IP Category: It then groups these filtered records by the
IPCategoryfield and counts the number of events in each category. -
Handle Empty IP Categories: After counting, it checks if any of the
IPCategoryvalues are empty. If anIPCategoryis empty, it assigns the value "Normal" to it.
In summary, this query is counting the number of cloud application events for each IP category, ensuring that any events without a specified IP category are labeled as "Normal".
Details

Jay Kerai
Released: October 2, 2025
Tables
Keywords
Operators