我有两个表 IdentityInfo 和 AuditLogs,因此我需要与这两列 AccountDisplayName(IdentityInfo) 和 Identity(AuditLogs) 合并。 我在微软信息中找到了这个,但没有与此问题相关的信息。
IdentityInfo
|join kind=inner AuditLogs on AccountDisplayName,[CommonField]
提前致谢!
最佳答案
假设合并意味着加入,并且列AccountDisplayName
中的值与 Identity
列中的内容相等匹配,那么以下应该可以工作。
不过,您可能希望至少在 join
之一上应用过滤器/聚合。腿,取决于要连接的数据集的大小。
IdentityInfo
| join kind=inner AuditLogs on $left.AccountDisplayName == $right.Identity
join
的文档运营商:https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/joinoperator
关于azure - 合并两个具有不同列名的表 KQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72454786/