如何从具有不同架构的多个资源中提取数据

我需要用不同的模式集中来自多个资源的日志

例如

source1中的架构:时间戳记,错误代码,错误描述

source2中的架构:时间戳记,eventId,事件描述

表创建为

.create table TraceLog (Timestamp:datetime,errorcode:string,errordescription:string,eventId:string,eventdescription:string)

对于从source1提取数据,我使用简单

.ingest inline into Table TraceLog <| 2020-05-01,"error code","test error description"

对于soruce2中的数据,除了

.ingest inline into Table TraceLog <| 2020-05-01,"","test event ID","test event description"

在source1中没有指定列的情况下获取数据的其他方法?

yykingmax 回答:如何从具有不同架构的多个资源中提取数据

最简单的选择是针对每个不同的来源使用提取映射:

https://docs.microsoft.com/en-us/azure/data-explorer/kusto/management/mappings

如果数据需要其他转换(例如解析):您可以使用更新策略:

https://docs.microsoft.com/en-us/azure/data-explorer/kusto/management/updatepolicy

本文链接:https://www.f2er.com/2336203.html

大家都在问