Getting Data In

Is there a way in Splunk to ingest a zip file with multiple sourcetypes?

OMohi
Path Finder

Hi All:

I want to ingest a zip file that has multiple sourcetypes. Is there a mechanism on how to achieve it? Please let me know.

Thanks

0 Karma

grijhwani
Motivator

A variation of this question comes up periodically, and the basic answer is "no". A sourcetype is tied to the source in a one-to-many relationship. If your source is a set of zip files, then the sourcetype will apply to the zip files in their entirety, not their contents.

A possible solution is a triggered script, which unpacks the zip and allows you to then ingest the component files individually as defined sources in their own right.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...