# Prevent logstash from reading file from beginning when restarted

**URL:** <https://discuss.elastic.co/t/prevent-logstash-from-reading-file-from-beginning-when-restarted/220682>\
**Category:** Logstash\
**Created:** [February 24, 2020, 3:13pm UTC](https://discuss.elastic.co/t/prevent-logstash-from-reading-file-from-beginning-when-restarted/220682 "2020-02-24T15:13:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akwoprosper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akwoprosper/32/45810_2.png) [@akwoprosper](https://discuss.elastic.co/u/akwoprosper)\
**Post date:** [February 24, 2020, 3:13pm UTC](https://discuss.elastic.co/t/prevent-logstash-from-reading-file-from-beginning-when-restarted/220682/1 "2020-02-24T15:13:14Z")

</div>

Hi everyone,

I don't understand why Logstash does not continue reading a file from where it left off when restarted.

Following is my input plugin configuration:

input {  
file{  
path=\>"/data/backup/recovery-data/QUICKSEARCH\_CDR\_2019.12.23.csv"  
mode=\>"read"  
file\_completed\_action=\>"log"  
file\_completed\_log\_path=\>"/data/backup/logs/december/23"  
}  
}

Thanks in advance

---

<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:** [March 23, 2020, 3:13pm UTC](https://discuss.elastic.co/t/prevent-logstash-from-reading-file-from-beginning-when-restarted/220682/2 "2020-03-23T15:13:25Z")

</div>

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