All Apps and Add-ons

Can Splunk add a script to calculate swap stats for each PID in Splunk App for Unix and Linux or elsewhere?

vikasshinde
New Member

I can get RSZ_KB and VSZ_KB stats from sourcetype=ps (and from top also but in different fields). These both values don't give us exact stats about how much swap space each process is using.

Here is the method I am using to calculate that on my Linux host:

grep Swap /proc/[1-9]*/smaps | grep -v '\W0 kB' > /tmp/swap1.out
sort -n -r -k2 /tmp/swap1.out > /tmp/swap.out

So now I can see in "swap.out" how much swap space each PID is using.

Can Splunk add a script to calculate swap for each PID in *NIX app or elsewhere?

Thanks.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You can add that script to your own instance of the unix app yourself, run extensive testing, and then feed that script back to Splunk for inclusion in a future version.

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