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 as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...