# Logstash dosn't import CSV file

**URL:** <https://discuss.elastic.co/t/logstash-dosnt-import-csv-file/96286>\
**Category:** Logstash\
**Created:** [August 8, 2017, 2:44pm UTC](https://discuss.elastic.co/t/logstash-dosnt-import-csv-file/96286 "2017-08-08T14:44:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tals](https://avatars.discourse-cdn.com/v4/letter/t/f1d935/32.png) [@Tals](https://discuss.elastic.co/u/Tals)\
**Post date:** [August 8, 2017, 2:44pm UTC](https://discuss.elastic.co/t/logstash-dosnt-import-csv-file/96286/1 "2017-08-08T14:44:43Z")

</div>

Hi  
I'm trying to import CSV with Logstash.  
My config file looking like this:  
input{  
file{  
path=\>"/Users/office/Desktop/Elasticsearch data/ufo.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}   
filter{  
csv{  
separator =\> ","  
columns =\>["User\_Id","Age","Gender","Occupation","Zip\_Code"]

}  
#mutate{convert =\> ["User\_Id","interger"]}  
#mutate{convert =\> ["Age","interger"]}  
}  
output{  
elasticsearch{  
hosts=\>"[http://localhost:9200](http://localhost:9200)"  
index=\>"ufo"  
document\_type =\> "found"  
}  
stdout{}  
}

I got this as answer from Logstash  
Sending Logstash's logs to C:/logstash/logs which is now configured via log4j2.properties  
[2017-08-08T17:41:47,927][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>[], :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}  
[2017-08-08T17:41:48,003][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://localhost:9200/](http://localhost:9200/), :path=\>"/"}  
[2017-08-08T17:41:48,179][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>#\<URI::HTTP:0x2f4c52fe URL:[http://localhost:9200/](http://localhost:9200/)\>}  
[2017-08-08T17:41:48,181][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil}  
[2017-08-08T17:41:48,264][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-_", "version"=\>50001, "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"\_all"=\>{"enabled"=\>true, "norms"=\>false}, "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"}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date", "include\_in\_all"=\>false}, "@version"=\>{"type"=\>"keyword", "include\_in\_all"=\>false}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}}  
[2017-08-08T17:41:48,272][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>[#\<URI::HTTP:0x343e3f39 URL:[http://localhost:9200](http://localhost:9200)\>]}  
[2017-08-08T17:41:48,279][INFO][logstash.pipeline] Starting pipeline {"id"=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>5, "pipeline.max\_inflight"=\>500}  
[2017-08-08T17:41:48,952][INFO][logstash.pipeline] Pipeline main started  
[2017-08-08T17:41:49,146][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

But I can't see the documents on ES

---

<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:** [September 5, 2017, 2:56pm UTC](https://discuss.elastic.co/t/logstash-dosnt-import-csv-file/96286/2 "2017-09-05T14:56:48Z")

</div>

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