Splunk Dev

Is there a way to parse data files with a script?

mbbradley
New Member

I have a python script that parses a specific kind of text file. How can I change props.conf and inputs.conf so that splunk uses my python script (which changes the txt file to a csv) and then uploads that csv? Or how could it use the python script on stdout?

Tags (3)
0 Karma

vganjare
Builder

HI,

Can you please try the solution provided @ http://answers.splunk.com/answers/10501/python-script-as-unarchive-cmd-in-props-conf.html

Also, you can take a look @ http://blogs.splunk.com/2011/07/19/the-naughty-bits-how-to-splunk-binary-logfiles/ for parsing using perl script.

Thanks !!

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...