# The best way to achieve CSV imports?

**URL:** <https://discuss.elastic.co/t/the-best-way-to-achieve-csv-imports/153417>\
**Category:** Elasticsearch\
**Created:** [October 22, 2018, 2:21pm UTC](https://discuss.elastic.co/t/the-best-way-to-achieve-csv-imports/153417 "2018-10-22T14:21:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![balumurari1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balumurari1/32/39203_2.png) [@balumurari1](https://discuss.elastic.co/u/balumurari1)\
**Post date:** [October 25, 2018, 5:52am UTC](https://discuss.elastic.co/t/the-best-way-to-achieve-csv-imports/153417/3 "2018-10-25T05:52:14Z")

</div>

We can also use logstash to import data from csv to elasticsearch. The sample example is as shown below

> [@Load csv file in logstash](https://discuss.elastic.co/t/load-csv-file-in-logstash/151319/3):
>
> Thanks for reply,hope this works fine, input { file { path =\> "D:/Balu/ELK-stack/csvfile.csv" start\_position =\> "beginning" sincedb\_path =\> "NUL" } } filter { csv { separator =\> "," columns =\> ["open","high","low","close","volume"] } } output { elasticsearch { hosts =\> "[http://localhost:9200](http://localhost:9200)" index =\> "wallet-address-index" } stdout { codec =\> rubydebug } }

---

_[View the full topic](https://discuss.elastic.co/t/the-best-way-to-achieve-csv-imports/153417)._
