title | description | ms.topic | ms.service | ms.author | author | ms.date |
---|---|---|---|---|---|---|
Example log table queries for Usage |
Example queries for Usage log table |
reference |
azure-monitor |
edbaynash |
EdB-MSFT |
02/18/2024 |
Chart the amount of logs reported for each data type, today.
Usage
| summarize count_per_type=count() by DataType
| sort by count_per_type desc
| render piechart
Calculate the volume of billable data (in GB) for Perf data, over the last day.
Usage
| where TimeGenerated > ago(1d)
| where IsBillable == true
| where DataType == "Perf"
| summarize TotalVolumeGB = sum(Quantity) / 1024
Chart the volume of data (in Mb) sent by each solution.
Usage
| summarize total_MBytes=sum(Quantity) by Solution
| sort by total_MBytes desc nulls last
| render barchart
Volume (GB) of all data ingested to this workspace, over the last 24 hours.
Usage
|where TimeGenerated > ago(24h)
|summarize TotalIngestionVolGB = sum(Quantity)/1024.0
See total billable data from Container Insights solution.
//This includes billable data for all solutions in the workspace, see for Container Insights solution
Usage
| where TimeGenerated > startofday(ago(30d))
| where IsBillable == true
| summarize TotalVolumeGB = sum(Quantity) / 1000 by bin(TimeGenerated, 1d), Solution
| render barchart