Hello Hirdesh, Welcome to MS Q&A
To fetch the process consuming more CPU in Azure Log Analytics, you can use the Perf table and filter on the CounterName column to find the process consuming the most CPU. Here's an example KQL query to achieve this: You can try this once and let us know
Perf
| where ObjectName == "Process" and CounterName == "% Processor Time" and InstanceName != "_Total"
| summarize avg(CounterValue) by InstanceName, bin(TimeGenerated, 1m)
| order by avg_CounterValue desc
This query will return the processes consuming the most CPU, ordered by the average CPU usage over the last minute. You can adjust the bin function to change the time interval over which the average is calculated.
References:
- Optimize log queries in Azure Monitor
- Audit Microsoft Sentinel queries and activities - Auditing with LAQueryLogs
Please let us know if any questions
Kindly accept answer if it helps
Thanks
Deepanshu