Getting Data In

Splunk indexing zipped file without extracting or reading contents

padgetts
Observer

I am trying to make a Splunk index a zipped file that is generated every hour.

I use the batch method in order to destroy the file once it has been dealt with however i do not want Splunk to read the contents of the file but rather just index the actual zipped information for archival purposes.

Then if i require it in the future i can extract it at a later date.

 

I have looked into the props.conf (invalid_cause) method but it seems to extract the zipped file before indexing or not at all (errors).

 

Does anyone have experience or advice with this? 

Labels (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

That's not really what Splunk is for.  Since zipped files are not text, Splunk will not index them in native form.  After all, the point of Splunk is to have your data available for searching and a zipped file is not searchable.

Instead, consider copying the zip file to an AWS S3 bucket for archival.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...