Bagikan melalui


Kueri untuk tabel AegPublishFailureLogs

Untuk informasi tentang menggunakan kueri ini di portal Azure, lihat tutorial Analitik Log. Untuk REST API, lihat Kueri.

Menerbitkan kegagalan berdasarkan topik dan kesalahan

Menerbitkan log kegagalan berdasarkan nama topik dan pesan kesalahan.

AegPublishFailureLogs 
| parse Message with * "), httpStatusCode=" HttpStatusCode "," * ", errorMessage=" ErrorMessage 
| parse _ResourceId with * "/topics/" TopicName 
| project TimeGenerated, _ResourceId, TopicName, TenantId, OperationName, HttpStatusCode, ErrorMessage
| summarize by _ResourceId, TopicName, HttpStatusCode, ErrorMessage

Menerbitkan kegagalan berdasarkan topik dan kesalahan

Menerbitkan log kegagalan berdasarkan nama topik dan pesan kesalahan.

// To create an alert for this query, click '+ New alert rule'
AegPublishFailureLogs 
| parse Message with * "), httpStatusCode=" HttpStatusCode "," * ", errorMessage=" ErrorMessage 
| parse _ResourceId with * "/topics/" TopicName 
| project TimeGenerated, _ResourceId, TopicName, TenantId, OperationName, HttpStatusCode, ErrorMessage
| summarize by _ResourceId, TopicName, HttpStatusCode, ErrorMessage

Menerbitkan kegagalan menurut domain dan kesalahan

Menerbitkan log kegagalan menurut nama domain dan pesan kesalahan.

// To create an alert for this query, click '+ New alert rule'
AegPublishFailureLogs 
| parse Message with * "), httpStatusCode=" HttpStatusCode "," * ", errorMessage=" ErrorMessage 
| parse _ResourceId with * "/domains/" DomainName
| project TimeGenerated, _ResourceId, DomainName, TenantId, OperationName, HttpStatusCode, ErrorMessage
| summarize by _ResourceId, DomainName, HttpStatusCode, ErrorMessage