初めに
この記事は個人的なメモです。クエリの信憑性やパフォーマンスはご愛嬌ということで。
クエリ自体は自由に使って頂いて大丈夫です。
たまに追加したりメンテナンスします。
trace
Logicappsの特定のアプリケーションのログを取得
//LogicAppsの特定のアプリケーションのログを取得
traces
| where cloud_RoleName has "LogicApps名"
| where customDimensions.Category startswith "Azure.Core"
サービスレベルごとにログの数を集計して検索
//サービスレベルごとにLogicAppsのログを集計して検索
traces
| where customDimensions.Category startswith "Host.Workflow"
| summarize Count = count() by
Category = tostring(customDimensions.Category),
LogLevel = case(
severityLevel == 0, "Verbose",
severityLevel == 1, "Information",
severityLevel == 2, "Warning",
severityLevel == 3, "Error",
severityLevel == 4, "Critical",
"Unknown"
)
| order by Category, LogLevel
requests
ワークフローごとの実行回数を調べる
//ワークフローごとの実行回数を調べる
requests
| where cloud_RoleName has "ワークフロー名"
| parse operation_Name with operation_Name01 "." operation_Name02
| summarize execution_count = count() by operation_Name01
| order by execution_count desc
LogicAppsごとでの実行回数を調べる
//LogicAppsごとでの実行回数を調べる
requests
| where cloud_RoleName contains "LogicApps名"
| summarize execution_count = count() by operation_Name
| order by execution_count desc
過去24時間で最も実行回数が多いワークフローを調べる
//過去24時間で最も実行回数が多いワークフローを調べる
requests
| where timestamp > ago(24h)
| where cloud_RoleName contains "logicApps名"
| summarize execution_count = count() by cloud_RoleName, operation_Name
| order by execution_count desc