Azure eventhub Azure事件中心的日志数据被摄取到ADX表中,未显示任何记录,但记录计数即将到来

Azure eventhub Azure事件中心的日志数据被摄取到ADX表中,未显示任何记录,但记录计数即将到来,azure-eventhub,azure-data-explorer,kql,Azure Eventhub,Azure Data Explorer,Kql,[ 我正在将日志数据从Event hub摄取到ADX表,没有摄取错误,但ADX表中没有显示记录。我检查了ADX和Event hub的指标,它们看起来都很好。我怀疑我在ADX的Json映射中犯了一些错误,请帮助!。 JSON输入日志- {“Result”:{“AppId”:“VC4RAKOlhdK8sPuK”,“Id”:null,“UserId”:“7f471608-a395-46ce-9d57-8503075ce948”,“Email”:dspadmin@innovationshowcase.o

[

我正在将日志数据从Event hub摄取到ADX表,没有摄取错误,但ADX表中没有显示记录。我检查了ADX和Event hub的指标,它们看起来都很好。我怀疑我在ADX的Json映射中犯了一些错误,请帮助!。 JSON输入日志-
{“Result”:{“AppId”:“VC4RAKOlhdK8sPuK”,“Id”:null,“UserId”:“7f471608-a395-46ce-9d57-8503075ce948”,“Email”:dspadmin@innovationshowcase.onmicrosoft.com“,”角色名称“:”用户“,”操作“:”登录“,”参数“:null}”,Id“,”异常“:null“,”状态“,”5,“IsCanceled“,”0,“IsCompleted“,”1,“IsCompletedSuccessfully“,”CreationOptions“,”0,“AsyncState“:null,“IsFaulted”:0,“EventProcessedutTime”:“2020-04-09T10:39:19.8965009Z”,“PartitionId”:0,“EventQueueDutTime”:“2020-04-09T09:04:30.8100000Z”}

已创建表格-

.create table EventRaw (AppId:string,Id:string,UserId:string,Email:string,RoleName:string,Operation:string,Params:string,EventProcessedUtcTime:datetime,PartitionId:string,EventEnqueuedUtcTime:datetime)
应用于ADX表的映射

  .create table EventRaw ingestion json mapping 'Mapping' '[{"column":"AppId", "Properties": {"Path": "$.appid"}},{"column":"Id", "Properties": {"Path": "$.id"}},{"column":"UserId", "Properties": {"Path":"$.userid"}} ,{"column":"Email", "Properties": {"Path":"$.email"}}, {"column":"RoleName", "Properties": {"Path":"$.rolename"}},{"column":"Operation", "Properties": {"Path":"$.operation"}},{"column":"Params", "Properties": {"Path":"$.params"}},{"column":"EventProcessedUtcTime", "Properties": {"Path":"$.eventprocessedutctime"}},{"column":"PartitionId", "Properties": {"Path":"$.partitionid"}},{"column":"EventEnqueuedUtcTime", "Properties": {"Path":"$.eventenqueuedUtctime"}}]'

非常感谢您的帮助!

json映射中的“路径”区分大小写,我看到您的映射使用了不同的大小写,例如json属性
Email
被映射为
“路径”:“$.Email”
它应该是
“路径”:“$.Email”“

json映射中的'Path'区分大小写,我发现您的映射使用了不同的大小写,例如,json属性
Email
映射为
“Path”:“$.Email”
它应该是
“Path”:“$.Email”

谢谢@Avnera这很有帮助。但是我仍然无法在ADX表中获取时间戳列,它仍然是空的。包含时间戳的字段是什么?您可以发送适用的映射吗?我从EventHub接收的日志中没有时间戳数据,因此我使用了“x-opt-enqueued-time”属性y来摄取数据和“EventQuedTime”正在填充。谢谢@Avnera这很有帮助。但是我仍然无法在ADX表中获取时间戳列,它仍然是空的。包含时间戳的字段是什么?您可以发送适用的映射吗?我从EventHub接收的日志中没有时间戳数据,因此我使用了“x-opt-enqueued”-“时间”属性来摄取数据,“eventenquedtime”现在已很好地填充。