# Storing ElasticSearch query results in AVRO file

**URL:** https://discuss.elastic.co/t/storing-elasticsearch-query-results-in-avro-file/10455
**Category:** Elasticsearch
**Created:** [January 22, 2013, 4:47pm UTC](https://discuss.elastic.co/t/storing-elasticsearch-query-results-in-avro-file/10455 "2013-01-22T16:47:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sreejith\_Pillai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sreejith_pillai/32/2523_2.png) [@Sreejith\_Pillai](https://discuss.elastic.co/u/Sreejith_Pillai)
#### Post date: [January 22, 2013, 4:47pm UTC](https://discuss.elastic.co/t/storing-elasticsearch-query-results-in-avro-file/10455/1 "2013-01-22T16:47:24Z")

</div>

Hai,  
I want to store my ElasticSearch query output in AVRO format or to store it in an AVRO file. Please guide whether is it possible to do in ElasticSearch

---

<div class="post-metadata">

### Author: ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)
#### Post date: [January 24, 2013, 3:55pm UTC](https://discuss.elastic.co/t/storing-elasticsearch-query-results-in-avro-file/10455/2 "2013-01-24T15:55:31Z")

</div>

Sreejith Pillai wrote:

> I want to store my Elasticsearch query output in AVRO format or to  
> store it in an AVRO file. Please guide whether is it possible to do  
> in Elasticsearch

There is no Avro support built into ES, nor do I see any plugins for  
it. It should be trivial, however, to convert its default JSON  
output to Avro, or if you're using the Java API, translate responses  
to the Avro equivalent and build your own files.

-Drew

--

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 2:54am UTC](https://discuss.elastic.co/t/storing-elasticsearch-query-results-in-avro-file/10455/3 "2017-07-06T02:54:42Z")

</div>


