Splunk Search

CPU Usage by Process

Kendo213
Communicator

Is there a way to pull a list of running processes and the CPU % usage per process via Splunk natively? Using Powershell isn't proving to be that useful. For example, get-process | select name,CPU will give you the CPU time, but not the CPU percentage. Various scripts I've tried aren't successful at converting to a percentage.

Tags (1)
0 Karma

hortonew
Builder

inputs.conf

[perfmon://Process]
object = Process\(*
counters = *
instances = *
index = perfmon
interval = 30
disabled = 0

index=perfmon object=Process counter="% Processor Time" instance!=_Total instance!=Idle | stats latest(Value) as Value by host, instance

Turns nicely into Trellis pie chart

Edit: formatting to code to maintain backslash->paren

somesoni2
SplunkTrust
SplunkTrust
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...