Splunk Enterprise

Finding the top 10 or 15 processes in taskmgr search query.

saccam447
Explorer

Hey folks. Im new to splunk ive been created a bunch of different useful dashboards but i could not figure out how to do the following:

top 10 or 15 processes within task mgr.

I already have my perfmon.conf configured to forward a bunch of counters already. are there any counters in particular that I would need to help with this search query?

thank you very much for you input.

Scott

0 Karma
1 Solution

saccam447
Explorer

This is what I did below: I also made sure that my perfmon.conf file had all of the necessary instances and counters for the perfmon counter i created below.

source="perfmon:process percent processor time" host="las-p-pd-sql*" instance= * | chart max(Value) as MaxCPU, by instance,host

This worked perfectly for what I needed. The Chart and Table is very useful to look for a spike.

But Thank you Takajian for your help.

View solution in original post

0 Karma

saccam447
Explorer

This is what I did below: I also made sure that my perfmon.conf file had all of the necessary instances and counters for the perfmon counter i created below.

source="perfmon:process percent processor time" host="las-p-pd-sql*" instance= * | chart max(Value) as MaxCPU, by instance,host

This worked perfectly for what I needed. The Chart and Table is very useful to look for a spike.

But Thank you Takajian for your help.

0 Karma

Takajian
Builder

Do you want to see statistics of process on Windows server? If so, you can install Windows app. This may be the easiest way to do. The site is following.

http://splunk-base.splunk.com/apps/22315/splunk-for-windows

Following command will show you max cpu load by process name. Hope this help.

source=WMI:localprocesses Name!=Total | rex field=Name "(?[^#]+)#\d+$" | eval CPULoad = PercentProcessorTime | stats avg(CPULoad) by Name

0 Karma

saccam447
Explorer

I already have the Windows app installed. The problem is that im using perfmon:* instead of WMI:* for all my counters. Is there a way where that seatrch query can be modified for perfmon:* ... ? Or is WMI easier for this type of query?

Hope I am making sense.

Scott

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...