TSIIngress テーブルのクエリ

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

イベント ソース接続エラーを表示する

イベント ソース接続エラーに関連する最新の 100 個のログを取得し、ログが生成された時刻 (TimeGenerated)、高レベルの説明 (ResultDescription)、問題の詳細とその修正方法 (メッセージ)、およびイベント ソースの現在の構成 (EventSourceProperties) を表示するように要約します。

//Retrieves the most recent 100 logs pertaining to event source connection failures and summarizes them to display the time when the log was generated (TimeGenerated), a high level description (ResultDescription), a message continaing details on what went wrong and how to fix it (Message), and your event source's current configuration (EventSourceProperties). 
TSIIngress
| where OperationName == 'Microsoft.TimeSeriesInsights/environments/eventsources/ingress/connect'
| project TimeGenerated, ResultDescription, Message, tostring(EventSourceProperties)
| top 100 by TimeGenerated desc

10 個の最新のイングレス ログ

イングレス カテゴリの最新の 10 個のエラー ログを表示します。 これは、TSIIngress スキーマを理解する際に役立ちます。

//Retrieves the most recent ten error logs in the Ingress category. This is helpful when getting familiar with the TSIIngress schema.
TSIIngress
| top 10 by TimeGenerated

逆シリアル化エラーを表示する

テレメトリ メッセージを逆シリアル化するための失敗から最新の 100 個のエラー ログを取得し、ログが生成された時刻 (TimeGenerated)、高レベルの説明 (ResultDescription)、逆シリアル化エラー (メッセージ) を含むメッセージを表示するように要約します。

//Retrieves the most recent 100 error logs from failures to deserialize telemetry message(s) and summarizes them to display the time when the log was generated (TimeGenerated), a high level description (ResultDescription), and a message with the deserialization error (Message).
TSIIngress
| where OperationName == 'Microsoft.TimeSeriesInsights/environments/eventsources/ingress/deserialize'
| project TimeGenerated, ResultDescription, Message, tostring(EventSourceProperties)
| top 100 by TimeGenerated desc