使用 Kusto Query 在 Azure LAWS 中创建计算机组
Creating computer group in Azure LAWS with Kusto Query
我正在尝试从日志分析保存的搜索中创建用于更新管理的计算机组,但无法完全弄明白。
使用此查询时,它会列出名称中包含 "test" 的所有计算机。工作正常,但不是我想要的。
Heartbeat
| where Computer contains "test"
| distinct Computer
但是当我想通过特定名称添加计算机时,出现错误。我如何通过使用计算机特定名称获得结果?
[
Heartbeat
| where Computer contains "test" and "test2" and "test3"
| distinct Computer
也尝试使用 "or" "has"“==”但无法正常工作。
请尝试in operator。
示例查询如下所示:
Heartbeat
| where Computer in ("test", "test2", "test3")
| distinct Computer
我正在尝试从日志分析保存的搜索中创建用于更新管理的计算机组,但无法完全弄明白。
使用此查询时,它会列出名称中包含 "test" 的所有计算机。工作正常,但不是我想要的。
Heartbeat
| where Computer contains "test"
| distinct Computer
但是当我想通过特定名称添加计算机时,出现错误。我如何通过使用计算机特定名称获得结果?
[
Heartbeat
| where Computer contains "test" and "test2" and "test3"
| distinct Computer
也尝试使用 "or" "has"“==”但无法正常工作。
请尝试in operator。
示例查询如下所示:
Heartbeat
| where Computer in ("test", "test2", "test3")
| distinct Computer