# Creating pipeline for windows using logstash

**URL:** <https://discuss.elastic.co/t/creating-pipeline-for-windows-using-logstash/217726>\
**Category:** Logstash\
**Created:** [February 4, 2020, 5:52am UTC](https://discuss.elastic.co/t/creating-pipeline-for-windows-using-logstash/217726 "2020-02-04T05:52:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ananya\_Mohiley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ananya_mohiley/32/61989_2.png) [@Ananya\_Mohiley](https://discuss.elastic.co/u/Ananya_Mohiley)\
**Post date:** [February 4, 2020, 5:52am UTC](https://discuss.elastic.co/t/creating-pipeline-for-windows-using-logstash/217726/1 "2020-02-04T05:52:40Z")

</div>

i have written the following code for ingesting the files into elastic search  
/\*input{  
file{  
path=\>"D:\SOATE-41\project\DOCUMENTATION\interim\datacsv.csv"  
start\_position=\>"beginning"  
sincedb\_path=\>"/dev/null"  
}  
}  
filter{  
csv{  
seperator=\>","  
columns=\>["iyear""imonth""iday""Country""State""City""latitude""longitude""location""summary""Type of Activity""attacktype1\_txt""type of target""targsubtype1\_txt""Security Forces""Target""Tanzeem""Motive""Wpn type""Wpn Details""weapdetail""total killed""Own Killed""trts cas""Remarks""Source""scite2""scite3"]  
}  
output{  
elasticsearch{  
host=\>"localhost"  
index=\>"ciactivities"  
document\_type=\>"sitreps"  
}  
stdout{}  
} \*/

I AM RECEIVING THE FOLLOWING ERROR  
Thread.exclusive is deprecated, use Thread::Mutex  
Sending Logstash logs to C:/logstash-7.5.2/logs which is now configured via log4j2.properties  
[2020-02-04T11:20:43,318][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2020-02-04T11:20:43,520][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.5.2"}  
[2020-02-04T11:20:45,195][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of [\t\r\n], "#", "{", ",", "]" at line 11, column 18 (byte 189) after filter{\r\ncsv{\r\nseperator=\>","\r\ncolumns=\>["iyear"", :backtrace=\>["C:/logstash-7.5.2/logstash-core/lib/logstash/compiler.rb:41:in `compile_imperative'", "C:/logstash-7.5.2/logstash-core/lib/logstash/compiler.rb:49:in `compile\_graph'", "C:/logstash-7.5.2/logstash-core/lib/logstash/compiler.rb:11:in `block in compile_sources'", "org/jruby/RubyArray.java:2584:in `map'", "C:/logstash-7.5.2/logstash-core/lib/logstash/compiler.rb:10:in `compile_sources'", "org/logstash/execution/AbstractPipelineExt.java:156:in `initialize'", "org/logstash/execution/JavaBasePipelineExt.java:47:in `initialize'", "C:/logstash-7.5.2/logstash-core/lib/logstash/java_pipeline.rb:27:in `initialize'", "C:/logstash-7.5.2/logstash-core/lib/logstash/pipeline\_action/create.rb:36:in `execute'", "C:/logstash-7.5.2/logstash-core/lib/logstash/agent.rb:326:in `block in converge\_state'"]}  
[2020-02-04T11:20:45,794][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2020-02-04T11:20:50,648][INFO][logstash.runner] Logstash shut down.

---

<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:** [February 4, 2020, 4:05pm UTC](https://discuss.elastic.co/t/creating-pipeline-for-windows-using-logstash/217726/2 "2020-02-04T16:05:39Z")

</div>

> [@Ananya\_Mohiley](#):
>
> ["iyear""imonth""iday""Country""State""City""latitude""longitude""location""summary""Type of Activity""attacktype1\_txt""type of target""targsubtype1\_txt""Security Forces""Target""Tanzeem""Motive""Wpn type""Wpn Details""weapdetail""total killed""Own Killed""trts cas""Remarks""Source""scite2""scite3"]

Column names should be comma separated. Also, do not use backslash in the path option of a file input, change them to forward slash.

---

<div class="post-metadata">

**Author:** ![Ananya\_Mohiley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ananya_mohiley/32/61989_2.png) [@Ananya\_Mohiley](https://discuss.elastic.co/u/Ananya_Mohiley)\
**Post date:** [February 5, 2020, 4:02am UTC](https://discuss.elastic.co/t/creating-pipeline-for-windows-using-logstash/217726/3 "2020-02-05T04:02:20Z")

</div>

thanks badger for your reply could ingest my intended files.........will connect further for issues related to elk

---

<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:** [March 4, 2020, 4:02am UTC](https://discuss.elastic.co/t/creating-pipeline-for-windows-using-logstash/217726/4 "2020-03-04T04:02:26Z")

</div>

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