# Unable to send the csv file to elastic search and neither I am able to get the output on console

**URL:** <https://discuss.elastic.co/t/unable-to-send-the-csv-file-to-elastic-search-and-neither-i-am-able-to-get-the-output-on-console/149086>\
**Category:** Logstash\
**Created:** [September 19, 2018, 8:50am UTC](https://discuss.elastic.co/t/unable-to-send-the-csv-file-to-elastic-search-and-neither-i-am-able-to-get-the-output-on-console/149086 "2018-09-19T08:50:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prakhar\_Sandhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prakhar_sandhu/32/35662_2.png) [@Prakhar\_Sandhu](https://discuss.elastic.co/u/Prakhar_Sandhu)\
**Post date:** [September 19, 2018, 8:50am UTC](https://discuss.elastic.co/t/unable-to-send-the-csv-file-to-elastic-search-and-neither-i-am-able-to-get-the-output-on-console/149086/1 "2018-09-19T08:50:25Z")

</div>

This is the logstash configuration file ---

input {  
file {  
path =\> "C:\Users\pr389076\Prakhar\cars.csv"  
start\_position =\>"beginning"  
sincedb\_path =\> "NUL"  
}  
}

filter {  
csv {  
separator =\> ","  
columns =\> ["maker", "model", "mileage", "manufacture\_year", "engine\_displacement", "engine\_power", "body\_type", "stk\_year", "transmission", "door\_count", "seat\_count", "fuel\_type", "date\_created", "date\_last\_seen", "price\_eur"]  
}  
mutate {convert =\> ["mileage", "integer"] }  
mutate {convert =\> ["price\_eur", "float"] }  
mutate {convert =\> ["engine\_power", "integer"] }  
mutate {convert =\> ["door\_count", "integer"] }  
mutate {convert =\> ["seat\_count", "integer"] }  
}

output {  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> "cars"  
document\_type =\> "sold\_cars"  
manage\_template =\> false  
}  
stdout {}  
}

When I am running this command ---  
logstash -f first-pipeline.config

I am unable to get the output on Elastic search and neither on console--  
The console output------  
C:\Users\pr389076\Prakhar\logstash-6.4.0\logstash-6.4.0\bin\>logstash -f first-pipeline.config  
Sending Logstash logs to C:/Users/pr389076/Prakhar/logstash-6.4.0/logstash-6.4.0/logs which is now configured via log4j2.properties  
[2018-09-19T14:14:55,712][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-09-19T14:14:57,758][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.4.0"}  
[2018-09-19T14:15:02,730][WARN][logstash.outputs.elasticsearch] You are using a deprecated config setting "document\_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=\>"document\_type", :plugin=\>\<LogStash::Outputs::ElasticSearch index=\>"cars", manage\_template=\>false, id=\>"35b602260b15e33fd18ec63192aab428211215cc0125cb5e49d9ede4f2fb762b", hosts=\>[[//localhost:9200](https://localhost:9200)], document\_type=\>"sold\_cars", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_d0a01641-6cc6-4ace-b11f-4c6aab186691", enable\_metric=\>true, charset=\>"UTF-8"\>, workers=\>1, template\_name=\>"logstash", template\_overwrite=\>false, doc\_as\_upsert=\>false, script\_type=\>"inline", script\_lang=\>"painless", script\_var\_name=\>"event", scripted\_upsert=\>false, retry\_initial\_interval=\>2, retry\_max\_interval=\>64, retry\_on\_conflict=\>1, action=\>"index", ssl\_certificate\_verification=\>true, sniffing=\>false, sniffing\_delay=\>5, timeout=\>60, pool\_max=\>1000, pool\_max\_per\_route=\>100, resurrect\_delay=\>5, validate\_after\_inactivity=\>10000, http\_compression=\>false\>}  
[2018-09-19T14:15:05,581][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}  
[2018-09-19T14:15:07,190][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>[], :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}  
[2018-09-19T14:15:07,210][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://localhost:9200/](http://localhost:9200/), :path=\>"/"}  
[2018-09-19T14:15:07,830][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://localhost:9200/](http://localhost:9200/)"}  
[2018-09-19T14:15:08,100][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es\_version=\>6}  
[2018-09-19T14:15:08,128][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=\>6}  
[2018-09-19T14:15:08,228][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>["[//localhost:9200](https://localhost:9200)"]}  
[2018-09-19T14:15:09,731][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x3041c624 run\>"}  
[2018-09-19T14:15:09,905][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>[]}  
[2018-09-19T14:15:09,953][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections  
[2018-09-19T14:15:10,691][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [September 25, 2018, 2:11pm UTC](https://discuss.elastic.co/t/unable-to-send-the-csv-file-to-elastic-search-and-neither-i-am-able-to-get-the-output-on-console/149086/2 "2018-09-25T14:11:13Z")

</div>

start\_position [does not work as you expect](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-start_position).

If you want to simply read a file from the beginning to the end, try [read mode](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#_read_mode).  
Settings:  
[mode](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-mode)  
[file\_completed\_action](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-file_completed_action)  
[file\_completed\_log\_path](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-file_completed_log_path)

---

<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:** [October 23, 2018, 2:19pm UTC](https://discuss.elastic.co/t/unable-to-send-the-csv-file-to-elastic-search-and-neither-i-am-able-to-get-the-output-on-console/149086/3 "2018-10-23T14:19:43Z")

</div>

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