Udostępnij za pomocą


Zapytania dotyczące tabeli TSIIngress

Aby uzyskać informacje na temat korzystania z tych zapytań w witrynie Azure Portal, zobacz Samouczek usługi Log Analytics. Aby zapoznać się z interfejsem API REST, zobacz Zapytanie.

Pokaż błędy połączenia ze źródłem zdarzeń

Pobiera najnowsze 100 dzienników odnoszących się do błędów połączenia ze źródłem zdarzeń i podsumowuje je, aby wyświetlić czas wygenerowania dziennika (TimeGenerated), ogólny opis (ResultDescription), szczegóły dotyczące tego, co poszło nie tak i jak rozwiązać problem (Komunikat) oraz bieżącą konfigurację źródła zdarzeń (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 najnowszych dzienników Ingress

Pokazuje dziesięć najnowszych dzienników błędów w kategorii Ingress. Jest to przydatne podczas zapoznawania się ze schematem 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

Pokaż błędy deserializacji

Pobiera 100 najnowszych dzienników błędów z nieudanych prób deserializacji komunikatów telemetrycznych i podsumowuje je, aby wyświetlić czas wygenerowania dziennika (TimeGenerated), zwięzły opis (ResultDescription) oraz komunikat z błędem deserializacji (Komunikat).

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