Getting Data In

How do you calculate the RAM on windows (perfmon) ?

henriq_c
Explorer

Hello,

I want to calculate the percentage of the RAM utilization and I do this but I know it is not good. Do you have a better proposition ?

index=xxx host=xxxx eventtype="perfmon_windows" object="Memory" counter="% Committed Bytes In Use"
| timechart span=1m eval(round(latest(Value),4)) as "RAM"

Same for the RAM utilization in Go :

index=xxx host=xxxx eventtype="perfmon_windows" object="Memory" counter="% Committed Bytes In Use" OR counter="Committed Bytes"

| eval percentused = case( counter=="% Committed Bytes In Use", round(Value, 4) )
| eval committed = case( counter=="Committed Bytes", round(Value, 4) )
| eval usedbytes = (percentused/100)*committed

| timechart span=1m eval((round(latest(percentused),4)) / 100 * round(latest(committed),4) / 1000000000) as "RAM"

Thanks

Tags (3)
Get Updates on the Splunk Community!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...