# Input file reads the entire file with every new row

**URL:** <https://discuss.elastic.co/t/input-file-reads-the-entire-file-with-every-new-row/79505>\
**Category:** Logstash\
**Created:** [March 21, 2017, 9:20pm UTC](https://discuss.elastic.co/t/input-file-reads-the-entire-file-with-every-new-row/79505 "2017-03-21T21:20:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zisraeli](https://avatars.discourse-cdn.com/v4/letter/z/848f3c/32.png) [@zisraeli](https://discuss.elastic.co/u/zisraeli)\
**Post date:** [March 21, 2017, 9:20pm UTC](https://discuss.elastic.co/t/input-file-reads-the-entire-file-with-every-new-row/79505/1 "2017-03-21T21:20:35Z")

</div>

My input file configuration is as follow:  
input {  
file {  
path =\> "c:\temp\my-logstash.input"  
type =\> "logs"  
start\_position =\> "end"  
}  
}

Yet, every time I add a row to the my-logstash.input file, the entire file is re-indexed (I redirect the output to Elasticsearch).  
I checked the sincedb file under $LS\_HOME\data\plugins\inputs\file and the byte count is correct.  
What am i possibly doing wrong?  
Thanks a lot!  
-Ziv

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 21, 2017, 9:26pm UTC](https://discuss.elastic.co/t/input-file-reads-the-entire-file-with-every-new-row/79505/2 "2017-03-21T21:26:41Z")

</div>

Are you sure you are appending to the file? If you e.g. are using an editor, this often results in a new file being created.

---

<div class="post-metadata">

**Author:** ![zisraeli](https://avatars.discourse-cdn.com/v4/letter/z/848f3c/32.png) [@zisraeli](https://discuss.elastic.co/u/zisraeli)\
**Post date:** [March 21, 2017, 9:30pm UTC](https://discuss.elastic.co/t/input-file-reads-the-entire-file-with-every-new-row/79505/3 "2017-03-21T21:30:23Z")

</div>

Good point. That's exactly how I'm adding new rows at this point - using vim 🙂  
I thought that the file name and the byte count are the only considerations. Hmmm...  
Thanks for the tip Christian!

---

<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 18, 2017, 9:30pm UTC](https://discuss.elastic.co/t/input-file-reads-the-entire-file-with-every-new-row/79505/4 "2017-04-18T21:30:25Z")

</div>

Closed on April 18, 2017, 9:30pm UTC

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