All Apps and Add-ons

File/Directory Information Input: When importing a .zip archive, why are there no timestamps or readable text?

BMacher
Path Finder

Hello fellow Splunkies,

I get data into Splunk by monitoring a directory for changes. If I insert an archive (.zip) of about 10 MB the data, it is not imported correctly --> no time stamps + unreadable text. I think the problem might be that Splunk starts the import immediately by unzipping the archive. Since it is not fully copied it fails and Splunk handles the file like binary code.

Does anyone know a solution?

0 Karma
1 Solution

woodcock
Esteemed Legend

Here is the best way. Modify the inputs.conf to add a blicklist for *.zippart
Then have the software that copies the files over, first rename the source file from *.zip to *.zippart, then copy it, then name it back.
If this cannot be done, then you can do something like this:
https://answers.splunk.com/answers/309910/how-to-monitor-a-folder-for-newest-files-only-file.html

View solution in original post

BMacher
Path Finder

I found a better solution myself. Add *.filepart$ to the inputs blacklist. If you transfer files per WinSCP make sure you use SFTP.

woodcock
Esteemed Legend

Here is the best way. Modify the inputs.conf to add a blicklist for *.zippart
Then have the software that copies the files over, first rename the source file from *.zip to *.zippart, then copy it, then name it back.
If this cannot be done, then you can do something like this:
https://answers.splunk.com/answers/309910/how-to-monitor-a-folder-for-newest-files-only-file.html

Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...