All Apps and Add-ons

How do I ingest 7z file?

rajyah
Communicator

Hi Splunkers!

Need your help. Is there a way for Splunk to ingest data that is compressed using 7z? I saw that there is an app in splunkbase called splunkbase.splunk.com/app/4255/ that can decompress zstd. I know that decompressing the 7z would be faster but the use case dictates that we ingest the 7z file directly.

Thanks!

0 Karma

dkeck
Influencer

HI,

pretty old this answer, but I did not find anything new about this, so could still be the case, that 7z is not supported.

https://answers.splunk.com/answers/13807/indexing-7-zip-files.html

Splunk can ingest compressed data, did you try to test 7z on a local instance?

0 Karma

rajyah
Communicator

Thanks for your response!

Splunk doesn't support 7z. We tried adding it through unarchive_cmd in the props.conf but it just wouldn't work.

We also installed the command line for 7z(p7zip). Below is the code we used:

props.conf

[source::....7z(.\d+)?]
unarchive_cmd = 7z e -so
sourcetype = preprocess-7z
NO_BINARY_CHECK = true

[preprocess-7z]
invalid_cause = archive
is_valid = False
LEARN_MODEL = false
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...