Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

KQL query - Relatively select data for today in where clause

I need a way to select dataset "since midnight" in Azure Monitor - e.g relative to current day.

Using ago(1d) is obviously not doing the trick :)

StorageBlobLogs
    | where TimeGenerated > ago(1d) and StatusText contains "success"

Cheers

like image 583
user878980 Avatar asked Oct 30 '25 14:10

user878980


1 Answers

You could try using startofday().

For example: ... | where TimeGenerated > startofday(now())

like image 84
Yoni L. Avatar answered Nov 02 '25 04:11

Yoni L.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!