# Unable to load csv into elastic through logstash

**URL:** <https://discuss.elastic.co/t/unable-to-load-csv-into-elastic-through-logstash/139595>\
**Category:** Logstash\
**Created:** [July 11, 2018, 2:31pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-into-elastic-through-logstash/139595 "2018-07-11T14:31:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gokul\_15](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Gokul\_15](https://discuss.elastic.co/u/Gokul_15)\
**Post date:** [July 11, 2018, 2:31pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-into-elastic-through-logstash/139595/1 "2018-07-11T14:31:21Z")

</div>

input{  
file{  
start\_position =\> "beginning"

```
path=>"C:\Users\Gokul\Desktop\tes.csv"
	}
}

output {
elasticsearch{
hosts=>localhost
index=>"test_prod"
	}	
	}

```

i have deleted the .null file in logstash think ie(since\_db\_path),,..

---

<div class="post-metadata">

**Author:** ![Gokul\_15](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Gokul\_15](https://discuss.elastic.co/u/Gokul_15)\
**Post date:** [July 11, 2018, 5:03pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-into-elastic-through-logstash/139595/2 "2018-07-11T17:03:47Z")

</div>

At first logstash waits for input but takes time,,now it shut down ..thinkk it happened after deleting .null file

---

<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:** [July 11, 2018, 9:03pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-into-elastic-through-logstash/139595/3 "2018-07-11T21:03:25Z")

</div>

Logstash is probably tailing tes.csv. To ensure that Logstash really reads the input files from the beginning, add `sincedb_path => "nul"` to your file input.

---

<div class="post-metadata">

**Author:** ![Gokul\_15](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Gokul\_15](https://discuss.elastic.co/u/Gokul_15)\
**Post date:** [July 12, 2018, 4:51am UTC](https://discuss.elastic.co/t/unable-to-load-csv-into-elastic-through-logstash/139595/4 "2018-07-12T04:51:43Z")

</div>

yeah it works...

---

<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:** [August 9, 2018, 4:58am UTC](https://discuss.elastic.co/t/unable-to-load-csv-into-elastic-through-logstash/139595/5 "2018-08-09T04:58:47Z")

</div>

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