gpt4 book ai didi

azure - 使用 Kusto 查询在 Azure LAWS 中创建计算机组

转载 作者:行者123 更新时间:2023-12-03 02:38:27 26 4
gpt4 key购买 nike

我正在尝试通过日志分析保存的搜索创建用于更新管理的计算机组,但无法完全弄清楚。

使用此查询时,它将列出名称中包含“test”的所有计算机。工作正常,但不完全是我想要的。

 Heartbeat
| where Computer contains "test"
| distinct Computer

但是当我想按特定名称添加计算机时,出现错误。我怎样才能通过使用计算机特定名称来获得结果?

[Error message[1]

Heartbeat
| where Computer contains "test" and "test2" and "test3"
| distinct Computer

还尝试使用“or”“has”“==”但无法使其工作。

最佳答案

请尝试 in operator .

示例查询如下所示:

Heartbeat
| where Computer in ("test", "test2", "test3")
| distinct Computer

关于azure - 使用 Kusto 查询在 Azure LAWS 中创建计算机组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62339218/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com