Splunk Search

CPU utilization

ARaman77
Explorer

There are some liberty services and in some host we have many microservice , I want to monitor CPU / memory usage in the particular host , is there a splunk query that will help me get this

Labels (2)
Tags (1)

ARaman77
Explorer

I am sorry if my questions are naive , but after some working around I was able to extract some CPU information

 

index=oslogs AND host=xxxxxx AND sourcetype=top AND pctCPU>0 | stats avg(pctCPU) as avgCPU by PID

 

however the PID will change on redeployment and restart of service , is there a way to get the process name to get the same query

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @ARaman77 you should provide us some more details.. the logs from the systems are already ingested to splunk or not yet? did you use some add-ons? 

if the CPU/memory logs are already ingested to splunk, then, you can run some search query and show us how the logs look like, so that we can fine-tune and get the cpu/memory details you wanted. 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...