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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...