简体   繁体   English

如何使用 Kusto 日志查询、Azure Monitor 读取/获取虚拟机后台进程

[英]How to read/get Virtual machine background processes using Kusto LOg query , Azure Monitor

I hope you all are doing great.我希望你们都做得很好。

I'd like to How to read/get Virtual machine background processes using Kusto Log query on Azure Monitor log analytics process.我想了解如何在 Azure Monitor 日志分析过程中使用 Kusto 日志查询来读取/获取虚拟机后台进程。

eg As shown in below screen shot:例如如下截图所示: 在此处输入图像描述

Kindly advise.好心提醒。

Enable the perf counters for the process and you need to get the Process Names out of it by querying the perf table.为进程启用性能计数器,您需要通过查询性能表从中获取进程名称。

You can add the perf counter Process(*)\% Processor Time.您可以添加性能计数器 Process(*)\% Processor Time。 By going to Log Analytics instance -> Advanced Settings -> Windows Performance Counters.通过转到 Log Analytics 实例 -> 高级设置 -> Windows 性能计数器。 Then query these performance counters as below.然后查询这些性能计数器如下。

Perf |性能 | where ObjectName == "Process" |其中 ObjectName == "进程" | where CounterName contains "Processor Time" |其中 CounterName 包含“处理器时间” | summarize makelist(InstanceName) by Computer按计算机汇总 makelist(InstanceName)

And other alternate way is by using the service map feature refer this, you can query ServiceMapProcess_CL table https://learn.microsoft.com/en-us/azure/azure-monitor/insights/vminsights-log-search .其他替代方法是使用服务地图功能参考此,您可以查询 ServiceMapProcess_CL 表https://learn.microsoft.com/en-us/azure/azure-monitor/insights/vminsights-log-search

Let me know if this answers.让我知道这是否有答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何监控Azure中的虚拟机日志文件 - How to monitor virtual machine log files in Azure 如何使用 terraform 在虚拟机中启用 azure 监视器? - How to enable azure monitor in virtual machine using terraform? 如何在 pivot 之后为 azure 日志警报索引 kusto 查询中的列 - How to index a column in kusto query after pivot for azure log alerts 如何监视Azure中的连续异常? (库斯托) - How to monitor consecutive exceptions in Azure? (Kusto) 如何根据 azure 监视器警报调整虚拟机磁盘大小 - How to resize disk of virtual machine based on the azure monitor alert 如何使用 REST API 或 Nodejs ZF20E3C5E604C0AB3D6FAZFZ 将 azure 虚拟机与日志分析工作区连接起来? - How to connect azure virtual machine with log analytics workspace using REST API or Nodejs SDK? 如何在 Azure 中使用虚拟机托管网站? - How to host Website using Virtual Machine in Azure? 获取 Azure Monitor 日志查询中失败请求的 blob 名称列表 - Get list of blob names for failed requests in Azure Monitor log query Azure 使用 Terraform 监控日志分析查询(显示事件) - Azure Monitor log analytics query using Terraform (display events) 如何在 Azure Monitor 中跨 Log Analytics 和 Application Insights 进行查询 - How to Query Across Log Analytics and Application Insights in Azure Monitor
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM