Forum Discussion
T150732D
Jun 27, 2022Copper Contributor
Sentinel Billable data
Hello can you please help me understand difference of two queries we received from vendor deployin sentinel. We have logic app running daily this query to see billable data (to monitor if we are...
T150732D
Jul 07, 2022Copper Contributor
mikhailf can you please help me with some query to show monthly sentinel ingestion log cost?
I would like to provide management total Gb but also cost in dollars.
thank you
Clive_Watson
Jul 07, 2022Bronze Contributor
Example for previous 3 months (excludes current month) but you can tweak that, alter line 4 from "-1" to "-0"
let price_ = 4.0; // enter you price per GB for LogAnalytics + Sentinel
Usage
// get logs for previous 3 months
| where TimeGenerated between(startofmonth(now(),-3) ..endofmonth(endofmonth(now(),-1)) )
| summarize GBytesTotal=sum(Quantity) / 1000, Price=sum(Quantity) / 1000 * price_ by month=bin(datepart("Month", TimeGenerated), 1)
// format month so we can sort it
| extend month = case(month==1,strcat(month,'. Jan'),month==2,strcat(month,'. Feb'),month==3, strcat(month,'. Mar'),month==4,strcat(month,'. Apr'),month==5,strcat(month,'. May'),month==6,strcat(month,'. Jun'),month==7, strcat(month,'. Jul'),month==8,strcat(month,'. Aug'),month==9,strcat(month,'. Sep'),month==10,strcat(month,'. Oct'),month==11,strcat(month,'. Nov'),month==12,strcat(month,'. Dec'),"error")
| order by month asc
You'll see this in the next version of the "Workspace Usage Report" workbook, in a week or so I hope.
- T150732DJul 07, 2022Copper Contributor
Clive_Watson wow thats great. can you help me setup right price for the parametr?
if we have 1000 GB daily cap and 500 GB commited tier, i insert value $0.99 per GB as per https://azure.microsoft.com/en-gb/pricing/details/microsoft-sentinel/
- Clive_WatsonJul 07, 2022Bronze ContributorCorrect.
If you need to get the total costs, you would need to add the 500MB commitment tier value for Azure Monitor (Log Analytics) as well https://azure.microsoft.com/en-gb/pricing/details/monitor/
$0.99 + $1.94 = $2.93
https://azure.microsoft.com/en-us/pricing/calculator/