# Unable to load csv file through logstash on windows

**URL:** <https://discuss.elastic.co/t/unable-to-load-csv-file-through-logstash-on-windows/186425>\
**Category:** Logstash\
**Created:** [June 19, 2019, 9:50am UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-through-logstash-on-windows/186425 "2019-06-19T09:50:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad\_Irfan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhammad_irfan/32/47241_2.png) [@Muhammad\_Irfan](https://discuss.elastic.co/u/Muhammad_Irfan)\
**Post date:** [June 19, 2019, 9:50am UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-through-logstash-on-windows/186425/1 "2019-06-19T09:50:16Z")

</div>

Hello Everyone,  
I am new in ELK, i was trying to load simple CSV file on logstash but got error although, i change sincedb\_path option and also local host but same result received..  
so please guide me

**my input file**

input {

file {

path =\> "D:/data/firends.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "null"

}

}

filter {  
csv {  
separator =\> ","

columns =\> ['name', 'city', 'country', 'mobile', 'location']

}

mutate {convert =\> ["mobile", "integer"]}  
}

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "firends"  
document\_type =\> "data"  
}

```auto
stdout { codec => dots }

```

}`

**my output**

C:\Users\HP\Downloads\elastic course\logstash-6.3.2\bin\>logstash -f D:\data\myda  
ta.conf  
'findstr' is not recognized as an internal or external command,  
operable program or batch file.  
Sending Logstash's logs to C:/Users/HP/Downloads/elastic course/logstash-6.3.2/l  
ogs which is now configured via log4j2.properties  
[2019-06-17T19:32:01,267][WARN][logstash.config.source.multilocal] Ignoring the  
'pipelines.yml' file because modules or command line options are specified  
[2019-06-17T19:32:01,525][INFO][logstash.runner] Starting Logstash {"  
logstash.version"=\>"6.3.2"}  
[2019-06-17T19:32:02,122][ERROR][logstash.agent] Failed to execute ac  
tion {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"L  
ogStash::ConfigurationError", :message=\>"Expected one of #, input, filter, outpu  
t at line 33, column 2 (byte 397) after ", :backtrace=\>["C:/Users/HP/Downloads/e  
lastic course/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:42:in `compi le_imperative'", "C:/Users/HP/Downloads/elastic course/logstash-6.3.2/logstash-c ore/lib/logstash/compiler.rb:50:in` compile\_graph'", "C:/Users/HP/Downloads/elas  
tic course/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:12:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in` map'", "C:/Users/HP/Downl  
oads/elastic course/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:11:in  
`compile_sources'", "C:/Users/HP/Downloads/elastic course/logstash-6.3.2/logstas h-core/lib/logstash/pipeline.rb:49:in` initialize'", "C:/Users/HP/Downloads/elas  
tic course/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:167:in `initial ize'", "C:/Users/HP/Downloads/elastic course/logstash-6.3.2/logstash-core/lib/lo gstash/pipeline_action/create.rb:40:in` execute'", "C:/Users/HP/Downloads/elasti  
c course/logstash-6.3.2/logstash-core/lib/logstash/agent.rb:305:in `block in con  
verge\_state'"]}  
[2019-06-17T19:32:02,402][INFO][logstash.agent] Successfully started  
Logstash API endpoint {:port=\>9600}

C:\Users\HP\Downloads\elastic course\logstash-6.3.2\bin\>

regards,  
Irfan

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 19, 2019, 1:12pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-through-logstash-on-windows/186425/2 "2019-06-19T13:12:05Z")

</div>

> [@Muhammad\_Irfan](#):
>
> message=\>"Expected one of #, input, filter, output at line 33, column 2 (byte 397)

It is objecting to the ` at the end of the configuration file.

---

<div class="post-metadata">

**Author:** ![Muhammad\_Irfan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muhammad_irfan/32/47241_2.png) [@Muhammad\_Irfan](https://discuss.elastic.co/u/Muhammad_Irfan)\
**Post date:** [June 22, 2019, 6:11am UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-through-logstash-on-windows/186425/3 "2019-06-22T06:11:00Z")

</div>

Hello,

Thanks for notified me about this mistake but still my code was not executed.

After create new file, it was working

Regards,  
Irfan

---

<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 20, 2019, 6:11am UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-through-logstash-on-windows/186425/4 "2019-07-20T06:11:13Z")

</div>

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