# Can elastic search read a csv or tsv file in hdfs?

**URL:** <https://discuss.elastic.co/t/can-elastic-search-read-a-csv-or-tsv-file-in-hdfs/16691>\
**Category:** Elasticsearch\
**Created:** [March 29, 2014, 1:00am UTC](https://discuss.elastic.co/t/can-elastic-search-read-a-csv-or-tsv-file-in-hdfs/16691 "2014-03-29T01:00:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![siva\_mannem](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@siva\_mannem](https://discuss.elastic.co/u/siva_mannem)\
**Post date:** [March 29, 2014, 1:00am UTC](https://discuss.elastic.co/t/can-elastic-search-read-a-csv-or-tsv-file-in-hdfs/16691/1 "2014-03-29T01:00:19Z")

</div>

Hi,  
can elastic search read a csv or tsv file in hdfs?  
i am able to read a json file from hadoop hdfs and write to elastic search  
and  
i am able to read that json data from elastic search index.  
is it possible to achieve the same with csv or tsv files on HDFS?  
or  
is elastic search meant only for JSON formatted files?  
thanks,  
--siva mannem

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0fc01949-73db-4103-acc1-c75a3eb0caf4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0fc01949-73db-4103-acc1-c75a3eb0caf4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)\
**Post date:** [March 31, 2014, 7:49pm UTC](https://discuss.elastic.co/t/can-elastic-search-read-a-csv-or-tsv-file-in-hdfs/16691/2 "2014-03-31T19:49:47Z")

</div>

Not sure about the HDFS part, but you certainly can use Logstash to parse a  
CSV file and then output it to Elasticsearch:

[http://logstash.net/docs/1.4.0/filters/csv](http://logstash.net/docs/1.4.0/filters/csv)

[http://logstash.net/docs/1.4.0/outputs/elasticsearch](http://logstash.net/docs/1.4.0/outputs/elasticsearch)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c4ccee6b-6c1f-4e3c-a992-e8323dd3b567%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c4ccee6b-6c1f-4e3c-a992-e8323dd3b567%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:39am UTC](https://discuss.elastic.co/t/can-elastic-search-read-a-csv-or-tsv-file-in-hdfs/16691/3 "2017-07-06T01:39:16Z")

</div>


