Kusto:从特定数据添加其他列

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kusto:从特定数据添加其他列相关的知识,希望对你有一定的参考价值。

使用Kusto在Azure Log Analytics中,我试图完成对特定时间段内处理器活动的概述。像这样的东西:

Perf 
| where TimeGenerated between ((startofday(now())) .. (endofday(now())))
| where Computer == "servername.domain.local"
| where ObjectName == "Processor Information" and CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize avg(CounterValue) by bin(TimeGenerated, 1m)
| render timechart 

我想添加的是来自处理器核心的数据,该数据位于总处理时间之上,并在时间表中显示。我已经忙了一天,但似乎无法正常工作。因此,基本上可以归结为执行多个where语句并将结果放在单独的列中(我认为)]

任何人都可以分享一些见解吗?

答案
Perf | where TimeGenerated between ((startofday(now())) .. (endofday(now()))) | where Computer == "servername.domain.local" | where ObjectName == "Processor Information" and CounterName == "% Processor Time" | summarize avg(CounterValue) by bin(TimeGenerated, 1m), InstanceName | render timechart

以上是关于Kusto:从特定数据添加其他列的主要内容,如果未能解决你的问题,请参考以下文章

Spark:添加两列并用从其他列计算的数据填充它们

将列动态添加到数据网格或使用列表中的特定列生成数据网格

在特定的其他列之前或之后添加 sql 表列 - 通过 Laravel 4.1 中的迁移

如何将具有嵌套元素的列从其他列添加到数据框(withColumn)[重复]

在 Kusto 查询中显示 JSON 属性 - 特定子网

azure 日志警报透视后如何在 kusto 查询中索引列