All Apps and Add-ons

Indexing an Avro file

New Member

Does anyone have experience indexing an Avro file?

I have Avro data stored in HDFS, but have been unable to find a good way to have Splunk read the binary Avro format without using custom code or other transforms.

Before I go down the custom code path figured I'd ask for other's experiences.

I have tried:
* HadoopConnector - Underlying hadoop fs commands (at least on my CDH4 system) return binary data.
* Flume - Doesn't seem to be able to read in an Avro file source.
* Hue + Splunk w/ http GET - this gets ugly quickly and is super inefficient.


0 Karma

Re: Indexing an Avro file

Splunk Employee
Splunk Employee

Sorry for the late reply but this is what I have may already know this:

There are tools that will convert the Avro binary format to text:
-- BinaryFragmentToJsonTool
-- ToTextTool
-- DataFileReadTool

The link below is a good blog article discussing this

Avro is not the only tool that write to binary format which then needs a converter (or translator) to make it readable in Splunk; some network devices that Splunk monitors act similarly. The point being is that you are not alone.

Hopefully these built in tools will work for you so you don't have to write and support code.


Re: Indexing an Avro file


Install Avro Tools:

wget ''
tar xvf avro-1.7.6.tar.gz
cd avro-1.7.6
sudo python install

Install Avro Tools using PIP:

pip install avro

Conversion from Avro to json

avro cat "/avro_file_path/*.avro" -- format json >"output_file_path/output.json"

Data input >> Files & Directories >> Moniter "outputfilepath/output.json"

0 Karma