All Apps and Add-ons

Nix Add On: How to convert numerical values

vader13
New Member

We are using the *NIX add-on that is using the TOP.sh script to pull Memory per process.

The data logged appears to just be a string "208m" or "9990" or "2.1g".

Splunk doesn't appear to understand it is a numerical value.

I want to perform mathematical calculations on this data.

Is there a function to convert this to a numerical value or do I need to strip the suffix and multiply the result by the suffix value?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...