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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...