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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...