# LogStash not sending data to ElasticSearch

**URL:** https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597
**Category:** Logstash
**Created:** [March 28, 2021, 3:57pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597 "2021-03-28T15:57:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ritika3799](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritika3799/32/86197_2.png) [@ritika3799](https://discuss.elastic.co/u/ritika3799)
#### Post date: [March 28, 2021, 3:57pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597/1 "2021-03-28T15:57:33Z")

</div>

```auto
input { 
       file{
    path => "C:/elastic_stack/*.csv"
    start_position => "beginning"
    sincedb_path => "null"
         }
    }
    filter {
    csv { separator => ","
    columns => ["name","mfr","type","calories","protein","fat","sodium","fiber","carbo","sugars","potass","vitamins","shelf","weight","cups","rating"]
    }
    }
    output {
    elasticsearch
    { hosts => "http://localhost:9200/"
      index => "cereals"
    }
    stdout {}
    }

```

This is my config file but the data is not sending to elastic search

---

<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: [March 28, 2021, 4:21pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597/2 "2021-03-28T16:21:29Z")

</div>

> [@ritika3799](#):
>
> `sincedb_path => "null"`

If you do not want to persist the in-memory sincedb across restarts then on Windows set the path to "NUL", on UNIX set it to "/dev/null". You likely have a file called "null" that you will need to remove.

---

<div class="post-metadata">

### Author: ![ritika3799](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritika3799/32/86197_2.png) [@ritika3799](https://discuss.elastic.co/u/ritika3799)
#### Post date: [March 28, 2021, 4:41pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597/3 "2021-03-28T16:41:28Z")

</div>

changed to "null" to "NUL" , im on windows , still the same result

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [March 28, 2021, 4:43pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597/4 "2021-03-28T16:43:41Z")

</div>

Please post the startup logs from Logstash.

---

<div class="post-metadata">

### Author: ![ritika3799](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ritika3799/32/86197_2.png) [@ritika3799](https://discuss.elastic.co/u/ritika3799)
#### Post date: [March 28, 2021, 4:46pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597/5 "2021-03-28T16:46:02Z")

</div>

oops was too impatient ☹  
it works now! thanks  
its again stuck after reading some of the data, maybe its just too slow

---

<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: [April 25, 2021, 4:46pm UTC](https://discuss.elastic.co/t/logstash-not-sending-data-to-elasticsearch/268597/6 "2021-04-25T16:46:18Z")

</div>

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