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!

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

AI Adoption Hub Launch | Curated Resources to Get Started with AI in Splunk

Hey Splunk Practitioners and AI Enthusiasts! It’s no secret (or surprise) that AI is at the forefront of ...