# Logstash and a CSV

**URL:** <https://discuss.elastic.co/t/logstash-and-a-csv/159041>\
**Category:** Logstash\
**Created:** [December 2, 2018, 12:40pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041 "2018-12-02T12:40:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [December 2, 2018, 12:40pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/1 "2018-12-02T12:40:49Z")

</div>

Good Sunday Morning,

I have a question. I have a directory full of CSV files roughly 110 gigs or so. I am trying to upload them all to ES but I keep getting an error. I know ES is working because I am using a tool to upload 1 CSV at a time. It takes forever. I am on a Windows Server.

So this is what I have as a config file

```
input {
  file {
  path => "Z:\output\not\*.csv"
  start position => "beginning"
  sincedb_path => "/dev/null"
  }
}
filter {
  csv {
  separator => ","
  }
}
output {
  elasticsearch {
  host => "http://localhost:9200"
  index => "work"
  }
 stddout {}
}

```

Once I run that I got a error of this. I am not sure what is going on here.

[![](https://i.ibb.co/gRqzDD8/log.png)](https://ibb.co/XC0SzzP)

Any help will be great.

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 2, 2018, 2:54pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/2 "2018-12-02T14:54:52Z")

</div>

> [@OpSecMonkey](#):
>
> sincedb\_path =\> "/dev/null"

This does not exist in windows 🙂  
Change it to NUL

sincedb\_path =\> "NUL"

---

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [December 2, 2018, 3:21pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/3 "2018-12-02T15:21:58Z")

</div>

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [December 2, 2018, 4:27pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/4 "2018-12-02T16:27:46Z")

</div>

[![](https://i.ibb.co/mBmwy9B/Log2.png)](https://ibb.co/qnzfgNn) I get this error now and not sure why

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 2, 2018, 4:41pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/5 "2018-12-02T16:41:56Z")

</div>

Did something change in your configuration?  
It says that "since\_path" is an invalid parameter... it should be "sincedb\_path".

---

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [December 2, 2018, 5:46pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/6 "2018-12-02T17:46:47Z")

</div>

Yes I just had the word "since\_path" I changed it.

---

<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:** [December 4, 2018, 2:27pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/7 "2018-12-04T14:27:45Z")

</div>

try like this,

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 }  
}

---

<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:** [January 1, 2019, 2:27pm UTC](https://discuss.elastic.co/t/logstash-and-a-csv/159041/8 "2019-01-01T14:27:46Z")

</div>

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