All Apps and Add-ons

Timechart for CPU and Memory Utilisation

davidts
Path Finder

Hi,

I have a few Windows servers which I want to correlate CPU and Memory perfromance over a time chart for each server. What is the best way to achieve this? Would I need to perform a search with a subsearch? or join two searches together?

The issue is that the field for the CPU value and Memory value is called "Value" in both events.

0 Karma

kristian_kolb
Ultra Champion

... | timechart span=1h avg(Value) by host, sourcetype

?

/K

0 Karma

kristian_kolb
Ultra Champion

switch 'sourcetype' for 'counter'. Or if you can only spliy by one field (don't remember, no splunk available right now), you can eval host + counter together like so;

... | eval hostcounter = host . counter | timechart span=1h avg(Value) by hostcounter | ...

/K

0 Karma

davidts
Path Finder

I get the the following error when I try to run that command:

Error in timechart command: The argument sourcetype is invalid.

The search is as follows:

host=server1 OR host=server2 counter="% Processor Time" OR counter="Available Bytes" | timechart span=1h avg(Value) by host,sourcetype

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...