Splunk Search

How to trim white spaces in events in search time

vikram1583
Explorer

Hi,

i have an event having white spaces in between i want to trim it
the data is coming from db connect i don't have access so i need o done it in search head

Can some one help me in fixing this

0 Karma

to4kawa
Ultra Champion
| foreach * [eval <<FIELD>> = trim('<<FIELD>>')]

all fields are trimed without _raw.

0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...