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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...