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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...