Поделиться через


Запросы для таблицы TSIIngress

Для получения информации об использовании этих запросов в портале Azure, см. руководство по Log Analytics. Сведения о REST API см. в разделе "Запрос".

Отображение ошибок подключения источника события

Извлекает последние 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 последних логов Ingress

Отображает последние десять журналов ошибок в категории Ingress. Это полезно при ознакомлении с схемой 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) и сообщения с ошибкой десериализации (Message).

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