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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...