# Csv eof

**URL:** <https://discuss.elastic.co/t/csv-eof/90405>\
**Category:** Logstash\
**Created:** [June 22, 2017, 7:53am UTC](https://discuss.elastic.co/t/csv-eof/90405 "2017-06-22T07:53:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [June 22, 2017, 7:53am UTC](https://discuss.elastic.co/t/csv-eof/90405/1 "2017-06-22T07:53:09Z")

</div>

I have a CSV file which I imported with Logstash into Elasticsearch. This CSV is "growing" when time goes by. But when this happens Logstash completely imports the file again, this in stead of the last added records. I am using Windows and tried to solve this with sincedb\_path to a csv.db file but it seems that this is not being used. Any suggestions would be great.

---

<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:** [June 22, 2017, 9:19am UTC](https://discuss.elastic.co/t/csv-eof/90405/2 "2017-06-22T09:19:41Z")

</div>

_Exactly_ how does the file grow? Logstash can only track updates that are done by appending to original file.

---

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [June 22, 2017, 9:24am UTC](https://discuss.elastic.co/t/csv-eof/90405/3 "2017-06-22T09:24:43Z")

</div>

There will be records added at the end of the file manually.

---

<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:** [June 22, 2017, 9:26am UTC](https://discuss.elastic.co/t/csv-eof/90405/4 "2017-06-22T09:26:46Z")

</div>

And what does "manually" mean?

---

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [June 22, 2017, 12:44pm UTC](https://discuss.elastic.co/t/csv-eof/90405/5 "2017-06-22T12:44:02Z")

</div>

People are adding records at the end of the spreadsheet on a regular basis.

---

<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:** [June 22, 2017, 1:07pm UTC](https://discuss.elastic.co/t/csv-eof/90405/6 "2017-06-22T13:07:45Z")

</div>

Right, so the program rewrites the file from scratch in a new file and renames the new file over the old file. Logstash can't track such changes.

---

<div class="post-metadata">

**Author:** ![Mario\_van\_Gemert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_van_gemert/32/13832_2.png) [@Mario\_van\_Gemert](https://discuss.elastic.co/u/Mario_van_Gemert)\
**Post date:** [June 22, 2017, 1:10pm UTC](https://discuss.elastic.co/t/csv-eof/90405/7 "2017-06-22T13:10:08Z")

</div>

Ok, thank you. Then we have to find another solution for this.

---

<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:** [July 20, 2017, 1:10pm UTC](https://discuss.elastic.co/t/csv-eof/90405/8 "2017-07-20T13:10:18Z")

</div>

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