0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【メモ】LogicAppsの実行状況をApplicationInsightで分析するクエリ

Posted at

初めに

この記事は個人的なメモです。クエリの信憑性やパフォーマンスはご愛嬌ということで。
クエリ自体は自由に使って頂いて大丈夫です。
たまに追加したりメンテナンスします。

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?