Getting Data In

Use script to format file while uploading

harshal_chakran
Builder

Hi,
I have a python script which formats the json file and create a new file in another location. My splunk instance reads this new formatted file.
Is there any way we can use Splunk to take the not formatted file, run script on it and upload the same?

0 Karma

woodcock
Esteemed Legend

You need to use unarchive_cmd. Here is a good tutorial:

http://blogs.splunk.com/2011/07/19/the-naughty-bits-how-to-splunk-binary-logfiles/

0 Karma

jkat54
SplunkTrust
SplunkTrust

Kinda sorta... You can run your script as a scripted input and then monitor the location you're dropping the modified file in. See scripted inputs in inputs.conf documentation. Then see monitor in the same document.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...