# Logstash re-read input file everytime there is modification

**URL:** https://discuss.elastic.co/t/logstash-re-read-input-file-everytime-there-is-modification/53022
**Category:** Logstash
**Created:** [June 16, 2016, 3:46pm UTC](https://discuss.elastic.co/t/logstash-re-read-input-file-everytime-there-is-modification/53022 "2016-06-16T15:46:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shiva](https://discuss.elastic.co/u/shiva)
#### Post date: [June 16, 2016, 3:46pm UTC](https://discuss.elastic.co/t/logstash-re-read-input-file-everytime-there-is-modification/53022/1 "2016-06-16T15:46:14Z")

</div>

I have an input file named test.csv and I use it as some kind of configuration. How do i force logstash to re read the file from beginning, everytime there is modification in the test.csv file

---

<div class="post-metadata">

### Author: ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)
#### Post date: [June 17, 2016, 5:33am UTC](https://discuss.elastic.co/t/logstash-re-read-input-file-everytime-there-is-modification/53022/2 "2016-06-17T05:33:39Z")

</div>

Maybe you could delete the old copy of the file and recreate the new?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [June 17, 2016, 10:35am UTC](https://discuss.elastic.co/t/logstash-re-read-input-file-everytime-there-is-modification/53022/3 "2016-06-17T10:35:27Z")

</div>

Yeah, there's no way to do this unless you restart LS and then set sincedb to `/dev/null` or similar.

---

<div class="post-metadata">

### Author: ![shiva](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@shiva](https://discuss.elastic.co/u/shiva)
#### Post date: [June 17, 2016, 12:40pm UTC](https://discuss.elastic.co/t/logstash-re-read-input-file-everytime-there-is-modification/53022/4 "2016-06-17T12:40:17Z")

</div>

Thanks for the replies.  
Yes, there is no way. Even deleting file and recreating them didn't help, as the inode number doesnt get changed always and file input plugin keeps track of file size using inodes

---

<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 6, 2017, 4:52am UTC](https://discuss.elastic.co/t/logstash-re-read-input-file-everytime-there-is-modification/53022/5 "2017-07-06T04:52:12Z")

</div>


