# Logstash csv upload not working

**URL:** <https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378>\
**Category:** Logstash\
**Created:** [April 26, 2016, 4:55am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378 "2016-04-26T04:55:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 26, 2016, 4:55am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/1 "2016-04-26T04:55:49Z")

</div>

Using below config file  
input {  
file {  
path =\> "C:\logstash\bin\saptest1.csv"  
type =\> "core2"  
start\_position =\> "beginning"  
}  
}  
filter {  
csv {  
columns =\> ["Material","Batch","Plant","SLoc"]  
separator =\> ","  
}  
}  
output {  
stdout {  
codec =\> rubydebug  
}  
}

CSV file has values for 4 columns separated by ,

Im getting below output and index not created

{:timestamp=\>"2016-04-26T09:59:54.305000+0530", :message=\>"Reading config file", :config\_file=\>"C:/logstash/bin/sap.conf", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/loader.rb", :line=\>"69", :method=\>"local\_config"}  
{:timestamp=\>"2016-04-26T09:59:54.365000+0530", :message=\>"Plugin not defined in namespace, checking for plugin file", :type=\>"input", :name=\>"file", :path=\>"logstash/inputs/file", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/plugin.rb", :line=\>"76", :method=\>"lookup"}  
{:timestamp=\>"2016-04-26T09:59:54.385000+0530", :message=\>"Plugin not defined in namespace, checking for plugin file", :type=\>"codec", :name=\>"plain", :path=\>"logstash/codecs/plain", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/plugin.rb", :line=\>"76", :method=\>"lookup"}  
{:timestamp=\>"2016-04-26T09:59:54.405000+0530", :message=\>"config LogStash::Codecs::Plain/@charset = "UTF-8"", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.405000+0530", :message=\>"config LogStash::Inputs::File/@path = ["C:\\logstash\\bin\\saptest1.csv"]", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
"2016-04-26T10:00:23.927000+0530",

---

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 26, 2016, 4:56am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/2 "2016-04-26T04:56:42Z")

</div>

{:timestamp=\>"2016-04-26T09:59:54.405000+0530", :message=\>"config LogStash::Inputs::File/@type = "core2"", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.405000+0530", :message=\>"config LogStash::Inputs::File/@start\_position = "beginning"", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.415000+0530", :message=\>"config LogStash::Inputs::File/@codec = \<LogStash::Codecs::Plain charset=\>"UTF-8"\>", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.415000+0530", :message=\>"config LogStash::Inputs::File/@add\_field = {}", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.415000+0530", :message=\>"config LogStash::Inputs::File/@stat\_interval = 1", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.415000+0530", :message=\>"config LogStash::Inputs::File/@discover\_interval = 15", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.415000+0530", :message=\>"config LogStash::Inputs::File/@sincedb\_write\_interval = 15", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.415000+0530", :message=\>"config LogStash::Inputs::File/@delimiter = "\n"", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.415000+0530", :message=\>"config LogStash::Inputs::File/@ignore\_older = 86400", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.425000+0530", :message=\>"config LogStash::Inputs::File/@close\_older = 3600", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}

---

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 26, 2016, 4:57am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/3 "2016-04-26T04:57:17Z")

</div>

{:timestamp=\>"2016-04-26T09:59:54.425000+0530", :message=\>"Plugin not defined in namespace, checking for plugin file", :type=\>"filter", :name=\>"csv", :path=\>"logstash/filters/csv", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/plugin.rb", :line=\>"76", :method=\>"lookup"}  
{:timestamp=\>"2016-04-26T09:59:54.475000+0530", :message=\>"config LogStash::Filters::CSV/@columns = ["Material", "Batch", "Plant", "SLoc"]", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.475000+0530", :message=\>"config LogStash::Filters::CSV/@separator = ","", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}

{:timestamp=\>"2016-04-26T09:59:54.475000+0530", :message=\>"config LogStash::Filters::CSV/@add\_tag = []", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}

{:timestamp=\>"2016-04-26T09:59:54.475000+0530", :message=\>"config LogStash::Filters::CSV/@remove\_tag = []", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}

{:timestamp=\>"2016-04-26T09:59:54.475000+0530", :message=\>"config LogStash::Filters::CSV/@add\_field = {}", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.475000+0530", :message=\>"config

LogStash::Filters::CSV/@remove\_field = []", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.485000+0530", :message=\>"config

LogStash::Filters::CSV/@periodic\_flush = false", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}

---

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 26, 2016, 4:57am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/4 "2016-04-26T04:57:40Z")

</div>

{:timestamp=\>"2016-04-26T09:59:54.485000+0530", :message=\>"config LogStash::Filters::CSV/@source = "message"", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.485000+0530", :message=\>"config LogStash::Filters::CSV/@quote\_char = "\""", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.485000+0530", :message=\>"config LogStash::Filters::CSV/@autogenerate\_column\_names = true", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.485000+0530", :message=\>"config LogStash::Filters::CSV/@skip\_empty\_columns = false", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.485000+0530", :message=\>"config LogStash::Filters::CSV/@convert = {}", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:54.485000+0530", :message=\>"Plugin not defined in namespace, checking for plugin file", :type=\>"output", :name=\>"stdout", :path=\>"logstash/outputs/stdout", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/plugin.rb", :line=\>"76", :method=\>"lookup"}  
{:timestamp=\>"2016-04-26T09:59:54.515000+0530", :message=\>"starting agent", :level=\>:info, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/agent.rb", :line=\>"207", :method=\>"execute"}  
{:timestamp=\>"2016-04-26T09:59:54.515000+0530", :message=\>"starting pipeline", :id=\>"main", :level=\>:info, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/agent.rb", :line=\>"461", :method=\>"start\_pipeline"}  
{:timestamp=\>"2016-04-26T09:59:54.875000+0530", :message=\>"Registering file input", :path=\>["C:\logstash\bin\saptest1.csv"], :level=\>:info, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb", :line=\>"171", :method=\>"register"}  
{:timestamp=\>"2016-04-26T09:59:54.875000+0530", :message=\>"No sincedb\_path set, generating one based on the file path", :sincedb\_path=\>"C:\Users\akatti/.sincedb\_3380cea5010b7c573bd60788eba91cf8", :path=\>["C:\logstash\bin\saptest1.csv"], :level=\>:info, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-file-2.2.5/lib/logstash/inputs/file.rb", :line=\>"216", :method=\>"register"}  
{:timestamp=\>"2016-04-26T09:59:54.885000+0530", :message=\>"Plugin not defined in namespace, checking for plugin file", :type=\>"codec", :name=\>"rubydebug", :path=\>"logstash/codecs/rubydebug", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/plugin.rb", :line=\>"76", :method=\>"lookup"}  
{:timestamp=\>"2016-04-26T09:59:54.885000+0530", :message=\>"\_globbed\_files: C:\logstash\bin\saptest1.csv: glob is: []", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"346", :method=\>"\_globbed\_files"}  
{:timestamp=\>"2016-04-26T09:59:54.885000+0530", :message=\>"\_globbed\_files: C:\logstash\bin\saptest1.csv: glob is: ["C:\\logstash\\bin\\saptest1.csv"] because glob did not work", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"349", :method=\>"\_globbed\_files"}  
{:timestamp=\>"2016-04-26T09:59:54.885000+0530", :message=\>"\_discover\_file: C:\logstash\bin\saptest1.csv: new: C:\logstash\bin\saptest1.csv (exclude is [])", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"310", :method=\>"\_discover\_file"}

---

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 26, 2016, 4:57am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/5 "2016-04-26T04:57:50Z")

</div>

{:timestamp=\>"2016-04-26T09:59:54.895000+0530", :message=\>"\_discover\_file: C:\logstash\bin\saptest1.csv: skipping because it was last modified more than 86400.0 seconds ago", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"330", :method=\>"\_discover\_file"}  
{:timestamp=\>"2016-04-26T09:59:54.895000+0530", :message=\>"config LogStash::Codecs::RubyDebug/@metadata = false", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:55.225000+0530", :message=\>"config LogStash::Outputs::Stdout/@codec = \<LogStash::Codecs::RubyDebug metadata=\>false\>", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:55.225000+0530", :message=\>"config LogStash::Outputs::Stdout/@workers = 1", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/config/mixin.rb", :line=\>"153", :method=\>"config\_init"}  
{:timestamp=\>"2016-04-26T09:59:55.235000+0530", :message=\>"Will start workers for output", :worker\_count=\>1, :class=\>LogStash::Outputs::Stdout, :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/output\_delegator.rb", :line=\>"77", :method=\>"register"}  
{:timestamp=\>"2016-04-26T09:59:55.235000+0530", :message=\>"Starting pipeline", :id=\>"main", :pipeline\_workers=\>8, :batch\_size=\>125, :batch\_delay=\>5, :max\_inflight=\>1000, :level=\>:info, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb", :line=\>"188", :method=\>"start\_workers"}  
{:timestamp=\>"2016-04-26T09:59:55.235000+0530", :message=\>"Pipeline main started", :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/agent.rb", :line=\>"465", :method=\>"start\_pipeline"}  
{:timestamp=\>"2016-04-26T10:00:00.235000+0530", :message=\>"Pushing flush onto pipeline", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb", :line=\>"458", :method=\>"flush"}  
{:timestamp=\>"2016-04-26T10:00:05.235000+0530", :message=\>"Pushing flush onto pipeline", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb", :line=\>"458", :method=\>"flush"}  
{:timestamp=\>"2016-04-26T10:00:08.903000+0530", :message=\>"\_globbed\_files: C:\logstash\bin\saptest1.csv: glob is: []", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"346", :method=\>"\_globbed\_files"}  
{:timestamp=\>"2016-04-26T10:00:08.903000+0530", :message=\>"\_globbed\_files: C:\logstash\bin\saptest1.csv: glob is: ["C:\\logstash\\bin\\saptest1.csv"] because glob did not work", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"349", :method=\>"\_globbed\_files"}  
{:timestamp=\>"2016-04-26T10:00:10.243000+0530", :message=\>"Pushing flush onto pipeline", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb", :line=\>"458", :method=\>"flush"}  
{:timestamp=\>"2016-04-26T10:00:15.243000+0530", :message=\>"Pushing flush onto pipeline", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb", :line=\>"458", :method=\>"flush"}  
{:timestamp=\>"2016-04-26T10:00:20.253000+0530", :message=\>"Pushing flush onto pipeline", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.1-java/lib/logstash/pipeline.rb", :line=\>"458", :method=\>"flush"}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 26, 2016, 5:40am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/6 "2016-04-26T05:40:35Z")

</div>

Hint: Post logs like this on pastebin or a similar service.

> {:timestamp=\>"2016-04-26T09:59:54.885000+0530", :message=\>"globbedfiles: C:\logstash\bin\saptest1.csv: glob is: ", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"346", :method=\>"globbedfiles"}

This indicates that the filename pattern (well, it's not really a pattern but it's treated as such) C:\logstash\bin\saptest1.csv doesn't match any files. This typically indicates a typo or that Logstash doesn't have permissions to access one of the directories, but in this particular case I suspect the problem is that you're using backslashes instead of forward slashes. At least previous versions of Logstash has had problems with backslashes on Windows.

> {:timestamp=\>"2016-04-26T09:59:54.895000+0530", :message=\>"discoverfile: C:\logstash\bin\saptest1.csv: skipping because it was last modified more than 86400.0 seconds ago", :level=\>:debug, :file=\>"/logstash/vendor/bundle/jruby/1.9/gems/filewatch-0.8.1/lib/filewatch/watch.rb", :line=\>"330", :method=\>"discoverfile"}

Adjust the `ignore_older` option if you want to read files older than 24 hours.

---

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 26, 2016, 8:08am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/7 "2016-04-26T08:08:19Z")

</div>

Thanks Magnus for that, it works

I am now trying to create index in ES with below conf

input {  
file {  
path =\> "C:/logstash/bin/saptest1.csv"  
type =\> "core2"  
start\_position =\> "beginning"  
ignore\_older =\> 0  
}  
}  
filter {  
csv {  
columns =\> ["Material","Batch","Plant","SLoc"]  
separator =\> ","  
}  
}  
output {  
elasticsearch {  
action =\> "index"  
hosts =\> "localhost"  
index =\> "sap"  
workers =\> 1  
}  
}

Its not creating index ..below is the log  
[http://pastebin.com/4A1vtsvM](http://pastebin.com/4A1vtsvM)

---

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 26, 2016, 12:38pm UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/8 "2016-04-26T12:38:08Z")

</div>

OK was able to get that top work....My csv file has first row as column header. How can use the first row as column name ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 26, 2016, 4:44pm UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/9 "2016-04-26T16:44:45Z")

</div>

> My csv file has first row as column header. How can use the first row as column name ?

That's currently not possible. See below.

> <https://github.com/logstash-plugins/logstash-filter-csv/issues/13>
>
> The CSV filter should have an option to treat the first row as header. This woul…d be useful for using it as an ETL tool.
> 
> Additionally, it could then ignore all subsequent rows that have that same exact value (extra header rows)

---

<div class="post-metadata">

**Author:** ![Mag\_Carl](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Mag\_Carl](https://discuss.elastic.co/u/Mag_Carl)\
**Post date:** [April 27, 2016, 4:05am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/10 "2016-04-27T04:05:19Z")

</div>

Thanks

---

<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, 5:00am UTC](https://discuss.elastic.co/t/logstash-csv-upload-not-working/48378/11 "2017-07-06T05:00:25Z")

</div>


