Getting Data In

Splunk adds .filepart to file name

AlexMcDuffMille
Communicator

Hello,

I put about 500 files on a server (between 2 directories) and was looking through the data. It seemed that most of the files were broken up line by line, but some of the files were not broken up and were saved as single events with multiple lines. Also, the source for some of the events were changed from the original file name (example1.log) to filename.filepart (example1.log.filepart).

Does anyone know what the .filepart means?

Thanks!

Tags (1)
0 Karma
1 Solution

Ayn
Legend

This is not due to anything Splunk does, but more likely because you've used some kind of file transfer software to transfer files to a directory Splunk is monitoring. WinSCP for instance will do this - while the file is transferred it will be called <filename>.filepart, then when the transfer is complete the file will be renamed to the original filename. Splunk will however pick up data directly when it appears, that is, before the file transfer is complete, and so will pull data while the file is still called <filename>.filepart.

View solution in original post

Ayn
Legend

This is not due to anything Splunk does, but more likely because you've used some kind of file transfer software to transfer files to a directory Splunk is monitoring. WinSCP for instance will do this - while the file is transferred it will be called <filename>.filepart, then when the transfer is complete the file will be renamed to the original filename. Splunk will however pick up data directly when it appears, that is, before the file transfer is complete, and so will pull data while the file is still called <filename>.filepart.

Ayn
Legend

Sure, you can use blacklists in inputs.conf. Have a look at the docs: http://docs.splunk.com/Documentation/Splunk/6.0/admin/inputsconf

So for instance

[monitor:///some/directory]
blacklist = \.filepart$
0 Karma

AlexMcDuffMille
Communicator

Is there anyway to prevent this from happening? I guess in the future I'll be sure to make sure it's uploaded before changing my inputs.conf to include the directory.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...