Query Details
//Produces results for Table Size, Number of Table Entries, Size per Entry, If the table is billable or not, Last record that was received, and Estimated Table Price
union withsource=TableName1 *
| where TimeGenerated > ago(31d)
| summarize
Entries = count(),
Size = sum(_BilledSize),
last_log = datetime_diff("second", now(), max(TimeGenerated)),
estimate = sumif(_BilledSize, _IsBillable == true)
by TableName1, _IsBillable
| project
['Table Name'] = TableName1,
['Table Size'] = Size,
['Table Entries'] = Entries,
['Size per Entry'] = 1.0 * Size / Entries,
['IsBillable'] = _IsBillable,
['Last Record Received'] = last_log,
['Estimated Table Price'] = (estimate / (1024 * 1024 * 1024)) * 4.0
| order by ['Table Size'] desc
This query retrieves information about a table, including its size, number of entries, size per entry, whether it is billable or not, the last record received, and the estimated price of the table. It does this by combining data from multiple tables, filtering for data within the last 31 days, summarizing the data by table name and billable status, and then projecting the desired columns. The results are then ordered by table size in descending order.

Rod Trent
Released: December 6, 2021
Tables
Keywords
Operators