azure - 不同排列的 KQL 连接

标签 azure kql azure-sentinel

我遇到一个问题,我想加入两个具有不同排列的模式,即

两个管状网络事件和远程 URL 加入

https:/Holiday.com/page1    https://www.Health.com/page3
https://www.Health.com  https://www.gift.com/page3
www.gift.com    https://www.Holiday.com/page3

以便这些在域上匹配

任何帮助将不胜感激

我尝试过不同的连接类型,例如:

内部 外 半

最佳答案

let NetworkEvents = datatable(url:string)
[
'https://www.Health.com/page1',
'https://www.Health.com/page3',
'https://www.gift.com/page3',
'https://www.facebook.com/page2'
];
let RemoteURL = datatable(remoteurl:string)
[
'www.facebook.com',
'www.Health.com',
'www.gift.com'
];
let URL_list = toscalar(RemoteURL | summarize make_list(remoteurl));
NetworkEvents
| mv-apply remoteurl = URL_list on (where url contains remoteurl)

以上查询与 url 匹配NetworkEvents 中的列表 remoteurl RemoteURL 中的列表。

输出:

查询使用 mv-apply运算符将子查询应用于多值列的每个元素,即 URL_list 的每个元素列,其中包含 RemoteURL 中的远程 URL 列表 table 。 where子句用于过滤 NetworkEvents表基于是否url列包含 URL_list 中的任何远程 URL使用 contains 的列运算符。

关于azure - 不同排列的 KQL 连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76430913/

相关文章:

azure - 如何将 json 文件作为参数传递给 Azure Powershell Runbook?

.net - Azure Active Directory 登录连接关闭异常

c# - Azure 函数无法访问 mscorelib.dll 访问被拒绝

azure - 如何更新 sql azure 上的日期时间?

json - 如何在 KQL 中找到动态数组中的特定元素?

Azure Log Analytics - 比较两个消息跟踪以在其中一个更新时发出警报

azure - 从 Microsoft Graph 安全 API 中提取扩展属性?

deployment - 无法下载云服务测试服务调用中实例 abc_webrole_IN_0 的 RDP 文件

json - 如何使用 Kusto 解析字符串内的嵌套 JSON