Splunk Search

How to omit leading zeros for all fields in a csv file coming from a Splunk forwarder?

bcusick
Communicator

Hi,

I'm trying to omit the leading zeros for all fields in a csv file that comes from a splunk forwarder. Is there any way to do this WITHOUT going through every single field in every single row?

My data looks like this:

QUANTITY
000040
000051
000149
000004

and I would like it to look like...

QUANTITY
40
51
149
4
Tags (5)
0 Karma

pradeepkumarg
Influencer
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...