[英]Azure data explorer automatic ingestion fails but manual works
我正在使用 Azure 數據瀏覽器和事件中心從 blob 存儲中提取 JSON。
我遵循的步驟是:
.show ingestion failures
"OperationId": f533e94f-58f5-4c88-837e-e1b9117850fa,
"Database": redacteddb,
"Table": redactedtbl,
"FailedOn": 2021-04-28T14:19:25.2781929Z,
"IngestionSourcePath": https://redactedstore.blob.core.windows.net/attachments/12345.txt.json,
"Details": Stream_NoDataToIngest: The input stream produced 0 bytes. This usually means that the input JSON stream was ill formed.,
"FailureKind": Permanent,
"RootActivityId": guid...,
"OperationKind": DataIngestPull,
"OriginatesFromUpdatePolicy": 0,
"ErrorCode": Stream_NoDataToIngest,
"Principal": dstsapp=KustoIngestionProd,
"ShouldRetry": 0,
"User": ,
"IngestionProperties": [Format=Json/mandatory, IngestionMapping=[{"column":"id","datatype":"","Path":"$['id']"},{"column":"message","datatype":"","Path":"$['message']"}], ValidationPolicy=[Options=ValidateCsvInputConstantColumns, Implications=BestEffort, IsDetailedErrorReportingEnabled=False], Tags=[ToStringEmpty], IngestIfNotExists=[ToStringEmpty], ZipPattern=[null]],
如果我通過https://dataexplorer.azure.com/再次手動運行攝取,它可以工作。
誰能幫我知道下一步如何排除故障? 我在設置攝取方面做錯了什么?
嘗試重新配置您的數據連接以使用multijson
/ multilinejson
格式,而不是json
。
JSON 格式Azure 數據瀏覽器支持兩種 JSON 文件格式:
json
:線分離 JSON。 輸入數據中的每一行恰好有一個 JSON 記錄。multijson
:多行 JSON。 解析器忽略行分隔符,並從之前的 position 到有效 JSON 的末尾讀取一條記錄。有關詳細信息,請參閱JSON 線。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.