A TSIIngress tábla lekérdezései
A lekérdezések Azure Portalon való használatáról további információt a Log Analytics oktatóanyagában talál. A REST API-val kapcsolatban lásd a Lekérdezést.
Eseményforrás csatlakozási hibáinak megjelenítése
Lekéri az eseményforrás csatlakozási hibáival kapcsolatos legutóbbi 100 naplót, és összegzi azokat, hogy megjelenítse a napló létrehozásának idejét (TimeGenerated), egy magas szintű leírást (ResultDescription), egy üzenetet, amely részletezi, hogy mi történt, és hogyan javítható ki (Üzenet), valamint az eseményforrás aktuális konfigurációja (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 legújabb bejövő napló
A bejövő forgalom kategóriában a legutóbbi tíz hibanaplót jeleníti meg. Ez hasznos a TSIIngress séma megismeréséhez.
//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
Deszerializálási hibák megjelenítése
Lekéri a legutóbbi 100 hibanaplót a telemetriai üzenetek deszerializálásának hibáiból, és összegzi azokat, hogy megjelenítse a napló létrehozásának időpontját (TimeGenerated), egy magas szintű leírást (ResultDescription), valamint egy deszerializálási hibát (Üzenet) tartalmazó üzenetet.
//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