[英]AppInsights Query Specific time range EST
我想在美國東部標准時間每天上午 7 點到晚上 10 點之間查詢 appinsights 日志以獲取以下查詢。 對此的任何幫助表示贊賞
dependencies
|where success == "False"
|where type == "Azure queue"
|where operation_Name == "XXXXTrigger"
您可以使用以下代碼進行查詢。 您可以像下面兩張圖片一樣更改時區。 或者您可以使用new()-5h
來轉換EST
時間。
dependencies
|where success == "False"
|where type == "Azure queue"
|where operation_Name == "XXXXTrigger"
|where timestamp between(todatetime(strcat(format_datetime(now(),'yyyy-MM-dd')," ",'07:00:00')) .. todatetime(strcat(format_datetime(now(),'yyyy-MM-dd')," ",'22:00:00')))
new()-5h
dependencies
|where success == "False"
|where type == "Azure queue"
|where operation_Name == "XXXXTrigger"
|where timestamp between(todatetime(strcat(format_datetime(now()-5h,'yyyy-MM-dd')," ",'07:00:00')) .. todatetime(strcat(format_datetime(now()-5h,'yyyy-MM-dd')," ",'22:00:00')))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.