Azure ポータルでこれらのクエリを使用する方法については、Log Analytics チュートリアルを参照してください。 REST API については、「 Query」を参照してください。
データ収集ルールによる取り込みおよび変換のエラー
データ収集ルールを使用してログを取り込む際の取り込みや変換の失敗を示すログを取得します。
// This query helps list the most recent 10 logs for failures during log ingestion/transformation.
DCRLogErrors
//| where OperationName == "Ingestion" // Uncomment this line to see Ingestion errors
//| where OperationName =="Transformation" // Uncomment this line to see Transformation errors
| sort by TimeGenerated desc
| limit 10