Query Details
//Calculate the size of the combined Device* tables from Defender for Endpoint by device name
//Data connector required for this query - M365 Defender - Device* tables
union withsource=_TableName Device*
| where TimeGenerated > ago(7d)
| summarize
Entries = count(), Size = sum(_BilledSize)
by DeviceName
| project
['Device Name'] = DeviceName,
['Table Size'] = Size,
['Table Entries'] = Entries,
['Size per Entry'] = 1.0 * Size / Entries
| order by ['Table Size'] descThis query calculates the size of the combined Device* tables from Defender for Endpoint based on the device name. It uses a data connector called M365 Defender - Device* tables. The query filters the data to include only the entries from the past 7 days. It then summarizes the data by device name, counting the number of entries and calculating the total size. The results are projected into a table with columns for Device Name, Table Size, Table Entries, and Size per Entry. The final output is ordered by Table Size in descending order.

Matt Zorich
Released: June 17, 2022
Tables
Keywords
Operators