All Apps and Add-ons

Splunk Add-on for Unix and Linux: How to get memory usage information?

deepak02
Path Finder

Hi,

I have installed the add on Splunk Add-on for Unix and Linux (Splunk_TA_nix) on my system.

I want to know the % of memory used and memory available.

Which script should I enable inside it to get this information? (I strongly suspect it is hardware.sh)

Thanks,
Deepak

0 Karma
1 Solution

adonio
Ultra Champion

i think its vmstat,
here is an event example:

  memTotalMB   memFreeMB   memUsedMB  memFreePct  memUsedPct   pgPageOut  swapUsedPct   pgSwapOut   cSwitches  interrupts       forks   processes     threads  loadAvg1mi  waitThreads    interrupts_PS    pgPageIn_PS    pgPageOut_PS
         11911       10274        1636        86.3        13.7  13714855820          0.7     3786262   561279655   557733268   550175067         222         428        0.30        0.00       1095.02       2025.87      15150.25

View solution in original post

0 Karma

woodcock
Esteemed Legend

Create an index called os on your indexers, create this file on your forwarders:

./Splunk_TA_nix/local/inputs.conf

And add these lines:

[script://./bin/vmstat.sh]
disabled = 0

Then restart splunk everywhere and enjoy.

0 Karma

adonio
Ultra Champion

i think its vmstat,
here is an event example:

  memTotalMB   memFreeMB   memUsedMB  memFreePct  memUsedPct   pgPageOut  swapUsedPct   pgSwapOut   cSwitches  interrupts       forks   processes     threads  loadAvg1mi  waitThreads    interrupts_PS    pgPageIn_PS    pgPageOut_PS
         11911       10274        1636        86.3        13.7  13714855820          0.7     3786262   561279655   557733268   550175067         222         428        0.30        0.00       1095.02       2025.87      15150.25
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 ...