SignalRServiceDiagnosticLogs テーブルのクエリ

Azure portal でこれらのクエリを使用する方法については、 Log Analytics のチュートリアルを参照してください。 REST API については、「 Query」を参照してください。

クライアント接続 ID

クライアント接続である接続 ID の概要。

SignalRServiceDiagnosticLogs
| where ConnectionType == "Client"
| summarize count() by ConnectionId, _ResourceId

接続が閉じる理由

切断された接続の密接な理由の概要。

SignalRServiceDiagnosticLogs
| where OperationName == "ConnectionAborted" or OperationName == "ConnectionEnded" or OperationName == "EndConnectionFailed"
| summarize count() by  ConnectionId, Message, _ResourceId

IP アドレス

サービスに接続されている IP の概要。これは、同じ問題が IP アドレスにパターンを持っているかどうかを判断するのに役立ちます。

SignalRServiceDiagnosticLogs
| where isnotnull(CallerIpAddress) and isnotempty(CallerIpAddress)
| summarize count() by CallerIpAddress, _ResourceId

特定の接続 ID に関連するログ

特定の接続 ID を含むログの一覧。

SignalRServiceDiagnosticLogs
// Enter ConnectionId value to filter by specific connection ID.
| where ConnectionId == ""
| sort by TimeGenerated asc
| take 100

特定のメッセージ トレース ID に関連するログ

特定のメッセージ トレース ID を含むログの一覧。

SignalRServiceDiagnosticLogs
| where OperationName == "ConnectionAborted" or OperationName == "ConnectionEnded" or OperationName == "EndConnectionFailed"
| summarize count() by  ConnectionId, Message, _ResourceId

特定のユーザー ID に関連するログ

特定のユーザー ID を含むログの一覧。

SignalRServiceDiagnosticLogs
// Enter UserId value to filter by specific user ID.
| where UserId == ""
| sort by TimeGenerated asc
| take 100

警告または例外を含むログ

警告または例外を含むログの一覧 (最初に表示された最新のログ)。

SignalRServiceDiagnosticLogs
| where Level == "Warning" or Level == "Error"
| sort by TimeGenerated desc, Collection asc
| take 100

サーバー接続 ID

サーバー接続である接続 ID の概要。

SignalRServiceDiagnosticLogs
| where ConnectionType == "Server"
| summarize count() by  ConnectionId, _ResourceId

操作名の時間グラフ

接続イベントとメッセージング イベントの傾向を取得するための、時間内の操作のグラフ。

SignalRServiceDiagnosticLogs
| summarize count() by OperationName, bin(TimeGenerated, 1min)
| render timechart

トランスポートの種類

接続のトランスポートの種類の概要。 通常、Websocket は既定で大部分である必要があります。

SignalRServiceDiagnosticLogs
| where isnotnull(TransportType) and isnotempty(TransportType)
| summarize count() by TransportType, _ResourceId

ユーザー ID

ユーザー ID の概要。

SignalRServiceDiagnosticLogs
| summarize count() by UserId, _ResourceId