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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...