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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...