Azure ポータルでこれらのクエリを使用する方法の詳細については、Log Analytics チュートリアルを参照してください。 REST API については、「 Query」を参照してください。
CIEventsAudit - API応答コード折れ線グラフ
オペレーションごとのリクエスト応答時間を示す折れ線グラフ。
CIEventsAudit
| summarize DurationMs = avg(DurationMs) by bin(TimeGenerated, 5m), OperationName
| render timechart
CIEventsAudit - 結果の種類 ClientError
結果タイプがClientErrorで終了した操作イベントリクエストのリストを取得します:HTTPステータスコード< 500。
CIEventsAudit
| where ResultType has "ClientError"
| sort by TimeGenerated desc
| limit 100 // You can adjust the limit value to the number of logs you would like to retrieve.
CIEventsAudit - セキュリティレベル エラー
エラーの重大度レベルで終了したAPIリクエストのリストを取得します。
CIEventsAudit
| where Level has "Error"
| sort by TimeGenerated desc
| limit 100 // You can adjust the limit value to the number of logs you would like to retrieve.
CIEvents - 特定の相関IDに関連するすべてのイベント
特定の相関IDに対するすべてのイベントリクエストの一覧を取得します。
union CIEventsAudit , CIEventsOperational
| where CorrelationId == "" // Add your CorrelationId in the quotation marks
| sort by TimeGenerated desc
| limit 100
CIEventsAudit - 特定のインスタンスIDのすべてのイベント
特定のインスタンスIDに対するAPIイベントリクエストのリストを取得します。
CIEventsAudit
| where InstanceId == "" // Add your InstanceId in the quotation marks
| sort by TimeGenerated desc
| limit 100