簡體   English   中英

Azure 數據資源管理器自動攝取失敗但手動工作

[英]Azure data explorer automatic ingestion fails but manual works

我正在使用 Azure 數據瀏覽器和事件中心從 blob 存儲中提取 JSON。

我遵循的步驟是:

  1. 邏輯應用程序創建 blob JSON,格式為 {"id":"12345","message":"base64String"}
  2. 在 Azure 數據資源管理器中,我創建了一個表,然后使用“從 blob 容器中提取數據”。 這成功地導入了我在容器中已有的數據。
  3. 然后我單擊鏈接以設置自動攝取。 此自動攝取無法攝取,但有以下異常:
.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

請參閱: https://docs.microsoft.com/en-us/azure/data-explorer/ingest-json-formats?tabs=kusto-query-language#the-json-format

JSON 格式Azure 數據瀏覽器支持兩種 JSON 文件格式:

  • json :線分離 JSON。 輸入數據中的每一行恰好有一個 JSON 記錄。
  • multijson :多行 JSON。 解析器忽略行分隔符,並從之前的 position 到有效 JSON 的末尾讀取一條記錄。

有關詳細信息,請參閱JSON 線

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM