Getting Data In

Can you extract file from zip and ingest

coolguycarlos
New Member

We are new to splunk and we are trying to find about all the vast capabilities that splunk offers.

So here is the scenario.

We have a repository that contains100s of zip files that are accessible through a network share.

Within these zip files contains a csv file that contains the data we need to ingest.

So the question is, is it possible for splunk to ingest just the csv within these individual zip files without having to unzip the entire archive first.

Labels (3)
0 Karma

bowesmana
SplunkTrust
SplunkTrust
0 Karma

coolguycarlos
New Member

Thanks. Is it possible though to only ingest the CSV file within the zip files?

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Firstly - there is no way to whitelist/blacklist/select subset of files from an archive. If you tell Splunk to ingest an archive, it will happily pull contents of all files contained within.

Secondly - ingesting archives can be tricky - any change to archive will cause complete reingestion of archive contents so you might end up with several copies of the same events (and huge overconsumption of license).

0 Karma

bowesmana
SplunkTrust
SplunkTrust

If the zip contains other files, then I don't know how you would exclude those files

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...