# Csv load with logstash not working

**URL:** <https://discuss.elastic.co/t/csv-load-with-logstash-not-working/183139>\
**Category:** Logstash\
**Created:** [May 28, 2019, 3:46pm UTC](https://discuss.elastic.co/t/csv-load-with-logstash-not-working/183139 "2019-05-28T15:46:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![soufiane1](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@soufiane1](https://discuss.elastic.co/u/soufiane1)\
**Post date:** [May 28, 2019, 3:46pm UTC](https://discuss.elastic.co/t/csv-load-with-logstash-not-working/183139/1 "2019-05-28T15:46:03Z")

</div>

Hello everyone,

I am trying to load a csv file with logstash with the following conf :

############################################################################################################################  
input  
{  
file  
{  
path =\> "C:\Users\BEKRISO\KIBANA7.0.1\INPUT\9r\_piste\_audit.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "C:\Users\BEKRISO\KIBANA7.0.1\sincedb"  
}  
}

############################################################################################################################

filter  
{  
csv  
{  
separator =\> ","  
columns =\> ["Date et heure","Utilisateur","Code","Libellé évènement","Code retour","Application","Code site","Objet Start","Usage cache","Valeur avant modif","Valeur après modif"]  
}  
}

##############################################################################################################################

output  
{  
elasticsearch  
{  
hosts =\> "cas0000658713:9200"  
index =\> "monbeaunode\_1"  
}

stdout {}

}

############################################################################################################################

and don't understand why my file isn't loaded, this is what I get as a result :

C:\Users\BEKRISO\KIBANA7.0.1\>TITLE Logstash

C:\Users\BEKRISO\KIBANA7.0.1\>del .\sincedb

C:\Users\BEKRISO\KIBANA7.0.1\>REM set JAVA\_HOME=C:\Users\BEKRISO\KIBANA7.0.1\Java\jre1.8.0\_72

C:\Users\BEKRISO\KIBANA7.0.1\>set JAVA\_HOME=C:\Users\BEKRISO\KIBANA7.0.1\Java\jre1.8.0\_72

C:\Users\BEKRISO\KIBANA7.0.1\>.\logstash\bin\logstash.bat -f logstash7-testbp.conf -l .\log\logstash7-testbp.log --debug --verbose  
Sending Logstash logs to .\log\logstash7-testbp.log which is now configured via log4j2.properties  
[2019-05-28T17:44:51,570][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2019-05-28T17:44:51,586][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.0.1"}  
[2019-05-28T17:44:59,024][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>, :added=\>[[http://cas0000658713:9200/](http://cas0000658713:9200/)]}}  
[2019-05-28T17:44:59,212][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://cas0000658713:9200/](http://cas0000658713:9200/)"}  
[2019-05-28T17:44:59,258][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es\_version=\>7}  
[2019-05-28T17:44:59,258][WARN][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document \_type {:es\_version=\>7}  
[2019-05-28T17:44:59,274][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>["//cas0000658713:9200"]}  
[2019-05-28T17:44:59,290][INFO][logstash.outputs.elasticsearch] Using default mapping template  
[2019-05-28T17:44:59,305][INFO][logstash.javapipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50, "pipeline.max\_inflight"=\>500, :thread=\>"#\<Thread:0x15bcca0 run\>"}  
[2019-05-28T17:44:59,399][INFO][logstash.outputs.elasticsearch] Index Lifecycle Management is set to 'auto', but will be disabled - Index Lifecycle management is not installed on your Elasticsearch cluster  
[2019-05-28T17:44:59,399][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"index\_patterns"=\>"logstash-_", "version"=\>60001, "settings"=\>{"index.refresh\_interval"=\>"5s", "number\_of\_shards"=\>1}, "mappings"=\>{"dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false, "fields"=\>{"keyword"=\>{"type"=\>"keyword", "ignore\_above"=\>256}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date"}, "@version"=\>{"type"=\>"keyword"}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}  
[2019-05-28T17:45:00,368][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=\>"main"}  
[2019-05-28T17:45:00,462][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>}  
[2019-05-28T17:45:00,462][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections  
[2019-05-28T17:45:00,899][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

Can someone help me to solve this problem pls ?

---

<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:** [May 28, 2019, 4:32pm UTC](https://discuss.elastic.co/t/csv-load-with-logstash-not-working/183139/2 "2019-05-28T16:32:07Z")

</div>

> [@soufiane1](#):
>
> Can someone help me to solve this problem pls ?

Use forward slash instead of backslash in Windows paths for the file input.

---

<div class="post-metadata">

**Author:** ![soufiane1](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@soufiane1](https://discuss.elastic.co/u/soufiane1)\
**Post date:** [May 29, 2019, 8:12am UTC](https://discuss.elastic.co/t/csv-load-with-logstash-not-working/183139/3 "2019-05-29T08:12:16Z")

</div>

Thank you for your help, it works now

---

<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:** [June 26, 2019, 8:12am UTC](https://discuss.elastic.co/t/csv-load-with-logstash-not-working/183139/4 "2019-06-26T08:12:18Z")

</div>

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