Splunk Search

How to write an eval if condition to multiply only numeric values by 100 for an alphanumeric field?

splunker9999
Path Finder

Hi,

We have a field which has both numeric values and words. We are looking to multiply all numeric values with 100.

Can some one please help?

0 Karma

sundareshr
Legend

Try this

... | eval field=if(isnum(field), field*100, field) | ...
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...