Getting Data In

Keep whitespace at beginning of a field value?

_Tom
Explorer

Splunk truncates leading and trailing spaces during field extraction. Normally this is desired behavior.
However, for one of our fields, the leading spaces must be preserved. It is about a fileinput with KV_MODE = none.
This should also not involve any manipulation of the field value, such as inserting quotes at the beginning and end of the field value, which would preserve the spaces.
Any ideas are welcome - is it possible at all?

Labels (3)
0 Karma

rstrong30
Loves-to-Learn

I'm looking for this myself.  Have a very old format that I need to keep the spaces for proper field extractions in props.  Have you found any setting that can be changed in props and/or transforms?

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...