# Logstash not sending data to elastic search

**URL:** <https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic-search/105515>\
**Category:** Logstash\
**Created:** [October 27, 2017, 6:09am UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic-search/105515 "2017-10-27T06:09:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navinder](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@Navinder](https://discuss.elastic.co/u/Navinder)\
**Post date:** [October 27, 2017, 6:09am UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic-search/105515/1 "2017-10-27T06:09:21Z")

</div>

Hi my config file is executed without any error. It's below

input {  
file { type =\> "jetorders" path =\> "/home/app/jetorders\*.csv" start\_position =\> "beginning" sincedb\_path =\> "/home/app/inputorders.log" } file { type =\> "jetitems" path =\> "/home/app/jetitems\*.csv" start\_position =\> "beginning" sincedb\_path =\> "/home/app/inputitems.log" } }  
filter {  
if [type] == "jetorders" { json { source =\> "message" } } if [type] == "jetitems" { json { source =\> "message" } } }  
output {  
if [type] == "jetorders" { elasticsearch { index =\> "jetorders" hosts =\> ["[http://xyz:9200](http://xyz:9200)"] } } if [type] == "jetitems" { elasticsearch { index =\> "jetitems" hosts =\> ["[http://xyz:9200](http://xyz:9200)"] } } }

My sincedb-path files are showing 0 0 0 0 not sure why. And the logstash.log file shows that pipeline has started without any errors but I don't see anything in my elasticsearch.

Thanks.

---

<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:** [October 27, 2017, 6:55am UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic-search/105515/2 "2017-10-27T06:55:23Z")

</div>

Use a `stdout { codec => rubydebug }` output to reduce complexity and make sure the input files are being read as expected. When that works you can introduce the elasticsearch output.

---

<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:** [November 24, 2017, 6:55am UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elastic-search/105515/3 "2017-11-24T06:55:42Z")

</div>

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