Splunk Search
Highlighted

how to remove white space in the beginning of string value in field?

New Member

In my field value are unstructured, few of the strings having space at beginning. Do anyone help, how to eliminate those white space?

Tags (2)
0 Karma
Highlighted

Re: how to remove white space in the beginning of string value in field?

SplunkTrust
SplunkTrust
eval field=ltrim(field)
---
If this reply helps you, an upvote would be appreciated.