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 个最新的流入量日志

显示入口类别中最近十个错误日志。 熟悉 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