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!

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 ...