# Invalid config logstash file

**URL:** <https://discuss.elastic.co/t/invalid-config-logstash-file/57339>\
**Category:** Logstash\
**Created:** [August 5, 2016, 10:57am UTC](https://discuss.elastic.co/t/invalid-config-logstash-file/57339 "2016-08-05T10:57:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fred\_Dionisio](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@Fred\_Dionisio](https://discuss.elastic.co/u/Fred_Dionisio)\
**Post date:** [August 5, 2016, 10:57am UTC](https://discuss.elastic.co/t/invalid-config-logstash-file/57339/1 "2016-08-05T10:57:33Z")

</div>

I'm following a basic tutorial since i'm new in this, and i've the following config file:

```
input {  
  file {
    path => "D:\elastic\logstash\data\data.csv"
    start_position => "beginning"    
  }
}
filter {  
  csv {
      separator => ","
      columns => ["Date","Open","High","Low","Close","Volume","Adj Close"]
  }
  mutate {convert =&gt; ["High", "float"]}
  mutate {convert =&gt; ["Open", "float"]}
  mutate {convert =&gt; ["Low", "float"]}
  mutate {convert =&gt; ["Close", "float"]}
  mutate {convert =&gt; ["Volume", "float"]}
}
output {  
    elasticsearch {
        action => "index"
        host => "localhost"
        index => "stock"
        workers => 1
    }
    stdout {}
}

```

And then I execute the following command in the terminal

`bin\logstash -f logstash-simple.conf`  
And it prints this:

```
io/console not supported; tty will not be manipulated
←[31mfetched an invalid config {:config=>"input { \n file {\n path => \"D:\
\elastic\\logstash\\data\\data.csv\"\n start_position => \"beginning\" \n
 }\n}\nfilter { \n csv {\n separator => \",\"\n columns => [\"Date\"......

```

And the rest of the file parsed. What am I missing? It's in UTF-8 and tried EOL UNIX and Windows format with both failing.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 6, 2016, 8:54am UTC](https://discuss.elastic.co/t/invalid-config-logstash-file/57339/2 "2016-08-06T08:54:51Z")

</div>

Is that the whole error?

---

<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, 4:44am UTC](https://discuss.elastic.co/t/invalid-config-logstash-file/57339/3 "2017-07-06T04:44:26Z")

</div>


