# Index not getting created for csv import

**URL:** <https://discuss.elastic.co/t/index-not-getting-created-for-csv-import/47877>\
**Category:** Logstash\
**Created:** [April 20, 2016, 8:56am UTC](https://discuss.elastic.co/t/index-not-getting-created-for-csv-import/47877 "2016-04-20T08:56:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PKA](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@PKA](https://discuss.elastic.co/u/PKA)\
**Post date:** [April 20, 2016, 8:56am UTC](https://discuss.elastic.co/t/index-not-getting-created-for-csv-import/47877/1 "2016-04-20T08:56:54Z")

</div>

I want to load csv into ES. I have followed the steps as detailed in this blog: [http://blog.webkid.io/visualize-datasets-with-elk/](http://blog.webkid.io/visualize-datasets-with-elk/)

I am using elasticsearch 2.3.1, kibana-4.5.0-linux-x64, logstash-2.3.1.  
I have deleted the sincedb file as well which was located in my /home/ec2-user/ directory.  
I am able to create the index for the below conf file:  
input {  
stdin { }  
}  
output {  
stdout { codec =\> rubydebug }  
elasticsearch {  
hosts =\> "localhost:9200"  
}  
}  
However, I am unable to create the 'stock' index in ES. Can anyone pls explain what I am doing wrong. Below is the output from curl 'localhost:9200/\_cat/indices?v'  
health status index pri rep docs.count docs.deleted store.size pri.store.size  
yellow open logstash-2016.04.20 5 1 1 0 4.8kb 4.8kb  
yellow open .kibana 1 1 2 0 8.3kb 8.3kb  
yellow open .kibi 1 1 4 0 20.1kb 20.1kb

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 20, 2016, 5:27pm UTC](https://discuss.elastic.co/t/index-not-getting-created-for-csv-import/47877/2 "2016-04-20T17:27:05Z")

</div>

What configuration isn't working? Is the input CSV file older than 24 hours? If yes, look at the file input's `ignore_older` option.

---

<div class="post-metadata">

**Author:** ![PKA](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@PKA](https://discuss.elastic.co/u/PKA)\
**Post date:** [April 22, 2016, 4:40am UTC](https://discuss.elastic.co/t/index-not-getting-created-for-csv-import/47877/3 "2016-04-22T04:40:50Z")

</div>

I added a few line breaks at the end of my csv file and things got started. The index is getting created now.

---

<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, 5:01am UTC](https://discuss.elastic.co/t/index-not-getting-created-for-csv-import/47877/4 "2017-07-06T05:01:12Z")

</div>

Closed on July 6, 2017, 5:01am UTC


