Getting Data In

Bypassing normal system/local/props.conf processing for .tar.gz files

adrienG
Engager

Hello, I develop my own Splunk App for specific file. 

These files are archive files with the ".tar.gz" extension and the filename end with "myapp". I make my own props.conf in my App : 

[preprocess-myapparchive]
invalid_cause = archive
is_valid = False
LEARN_MODEL = false

[source::...myapp.tar.gz]
unarchive_cmd = /opt/splunk/etc/apps/myapp/bin/myapp.py
NO_BINARY_CKECK = true
sourcetype = preprocess-myapparchive
priority = 10002

 

It seems like my [source::...myapp.tar.gz] stanza is never called because Splunk catch the file as .tar.gz and try to uncompress the archive file. How i can bypass the splunk system configuration for .tar.gz files ? 

My problem is relative to this post : https://community.splunk.com/t5/Getting-Data-In/ArchiveProcessor-Bypassing-normal-system-local-props...but the answer provided is not correct with my needs as I can't modify the /system/local/props.conf file...

Labels (4)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...