# Importing csv file to elasticsearch

**URL:** <https://discuss.elastic.co/t/importing-csv-file-to-elasticsearch/15524>\
**Category:** Elasticsearch\
**Created:** [January 31, 2014, 10:18am UTC](https://discuss.elastic.co/t/importing-csv-file-to-elasticsearch/15524 "2014-01-31T10:18:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![usha2626](https://avatars.discourse-cdn.com/v4/letter/u/4bbf92/32.png) [@usha2626](https://discuss.elastic.co/u/usha2626)\
**Post date:** [January 31, 2014, 10:18am UTC](https://discuss.elastic.co/t/importing-csv-file-to-elasticsearch/15524/1 "2014-01-31T10:18:46Z")

</div>

hey,

I am trying to import a csv file into elastic search and for a file it is  
working fine and if I change the CSV file it is not working then.  
It is gettig renamed from book.csv to book.csv.processing but index is not  
creating in elastic search.

i have wrote the follwing code

{  
"type": "csv",  
"csv\_file": {  
"folder": "E:\",  
"filename": "book.csv",  
"poll": "5m",  
"fields": [  
"id",  
"cat",  
"name",  
"price",  
"inStock",  
"author",  
"series\_t",  
"sequence\_i",  
"genre\_s"  
],  
"field\_separator": ",",  
"escape\_character": ";",  
"quote\_character": "'"  
},  
"index": {  
"index": "student",  
"type": "csv\_row",  
"bulk\_size": 200,  
"bulk\_threshold": 50  
}  
}

suggest what to do next.....

--  
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/e091fdd0-b6ab-42f8-9229-b6432effd789%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e091fdd0-b6ab-42f8-9229-b6432effd789%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:53am UTC](https://discuss.elastic.co/t/importing-csv-file-to-elasticsearch/15524/2 "2017-07-06T01:53:43Z")

</div>


