# Unable to import CSV to elasticsearch via logstash

**URL:** <https://discuss.elastic.co/t/unable-to-import-csv-to-elasticsearch-via-logstash/108726>\
**Category:** Logstash\
**Created:** [November 22, 2017, 2:08pm UTC](https://discuss.elastic.co/t/unable-to-import-csv-to-elasticsearch-via-logstash/108726 "2017-11-22T14:08:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoelJoy](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@JoelJoy](https://discuss.elastic.co/u/JoelJoy)\
**Post date:** [November 22, 2017, 2:08pm UTC](https://discuss.elastic.co/t/unable-to-import-csv-to-elasticsearch-via-logstash/108726/1 "2017-11-22T14:08:38Z")

</div>

Hi the Created the Config as below.  
usecase.config:  
input {  
file {  
path =\> "C:\ElasticStack\UseCase\_Karthi.csv"  
start\_position =\> "beginning"

}  
}  
filter {  
csv {  
separator =\> ","

```
  columns => ["Use case number","Project-ID","Delivery BU","Practice Unit","Account","Project Name","Run or Change","Use case source","Use cases","Use case description","Use case category","Tools/Solutions Suggested","Target FTE","Use case added to Engagement tracker","Use case implementation month-(MMM-YY)","Status","Additional remarks","Internal Automation SPOC"]

```

}  
}  
output {  
elasticsearch {  
hosts =\> "[http://172.29.203.49:9200](http://172.29.203.49:9200)"  
index =\> "wallet-address-index1"  
}  
stdout {}  
}

i didnt get any error while ruinning the logstash,  
logstash -f usecase.config.  
but when i check the index in Kibana i am not able to find the index.

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [November 22, 2017, 2:51pm UTC](https://discuss.elastic.co/t/unable-to-import-csv-to-elasticsearch-via-logstash/108726/2 "2017-11-22T14:51:26Z")

</div>

Did you see any output in the terminal? If the file input is reading lines from your CSV file then you should see some terminal output.

If you don't see output, you need to take care of the `since_db` file. Read these docs: [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#\_tracking\_of\_current\_position\_in\_watched\_files](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#_tracking_of_current_position_in_watched_files)

---

<div class="post-metadata">

**Author:** ![JoelJoy](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@JoelJoy](https://discuss.elastic.co/u/JoelJoy)\
**Post date:** [November 23, 2017, 5:22am UTC](https://discuss.elastic.co/t/unable-to-import-csv-to-elasticsearch-via-logstash/108726/3 "2017-11-23T05:22:37Z")

</div>

Thanks @guyboertje. since\_db was the problem. sincedb\_path =\> "nul"  
now it working fine. Thanks Again.

---

<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:** [December 21, 2017, 5:23am UTC](https://discuss.elastic.co/t/unable-to-import-csv-to-elasticsearch-via-logstash/108726/4 "2017-12-21T05:23:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
