Getting Data In

how we RUN Script which convert binary index data into csv and again save it into same index?

ajitshukla
Explorer

Hi please help me ,I have Universal forwarder install on another machine ,which send binary data to splunk insatnce .
On splunk instance I want ot RUN python script which will convert the binary data into csv and save it into another index.

before this I was able to run pyhton script on Universal Forwarder which will convert binary data into csv file and forwarder monitor that csv file and send it to splunk.

But my requirement has changed now I want to run pyhton script on splunk instance which will convert binary data coming from forwarder to csv in real time.

please help

Tags (1)
0 Karma

badarsebard
Communicator

Unfortunately there's no way to do this. One of the hard requirements of Splunk is that forwarded data is in text, no binary. The only way I see around this is to transmit the binary data through a different channel like sftp, rsync, etc. to a directory on the Splunk instance and then use a scripted input to convert the binary data to csv.

0 Karma

vishaltaneja070
Motivator

@ajitshukla

If data is coming to Splunk then you can create a report using search command and outputlookup the result to a csv file.

0 Karma

ajitshukla
Explorer

but converting binary data to csv logic written in python script ,so in any case I have to use python script

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Introducing .conf Stories Series!

“.conf Stories” Series – First Feature: Rich Mahlerwein   Every year .conf brings together some of the most ...