Splunk Search

How to prevent a space character from delimiting and truncating my filename field?


Hi folks,

I have some new logs coming in, and I took a look at the fieldname that has a Windows filename in it, and it is being truncated after the space character (if there happens to be one).

The events are coming in via DB Connect, multiline, and I can see the whole filename in the _raw event:

source_file=//home.local/home/caddev/usernameish/temp deck overview.pptx

So the event is indexing fine, but when I search, and Splunk does it's generic field extraction, the source_file field turns into:


Is there a quick way to fix this?

0 Karma

Revered Legend

The raw file is multiline events OR everything is coming in single line? Does the file name always contain extension of the file??

0 Karma


you need to build the extraction for that. A quick way is to use the extract fields in the event actions.
Check these splunk docs:

Hope I was able to help you. If so, some karma would be appreciated.


The extract fields utility is broken in my install. I'll have to investigate further, but for now it is erroring out.

0 Karma
Get Updates on the Splunk Community!

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more with ITSI’s ...

Accelerate Service Onboarding, Decomposition, Troubleshooting - and more! Faster Time to ValueManaging and ...

New Release | Splunk Enterprise 9.3

Admins and Analyst can benefit from:  Seamlessly route data to your local file system to save on storage ...

2024 Splunk Career Impact Survey | Earn a $20 gift card for participating!

Hear ye, hear ye! The time has come again for Splunk's annual Career Impact Survey!  We need your help by ...