Index not getting created for csv import

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/

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

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.

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