# Resume reading Logstash

**URL:** <https://discuss.elastic.co/t/resume-reading-logstash/115021>\
**Category:** Logstash\
**Created:** [January 11, 2018, 6:45am UTC](https://discuss.elastic.co/t/resume-reading-logstash/115021 "2018-01-11T06:45:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andualem\_Tilahun](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@Andualem\_Tilahun](https://discuss.elastic.co/u/Andualem_Tilahun)\
**Post date:** [January 11, 2018, 6:45am UTC](https://discuss.elastic.co/t/resume-reading-logstash/115021/1 "2018-01-11T06:45:58Z")

</div>

i am using a logstash server to read a data from my log file but suddenly my computer restart. i want the logstash server to start up Automatic when the computer start's and to resume reading where it stopped (not from the beginning).

thank you

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [January 11, 2018, 8:35am UTC](https://discuss.elastic.co/t/resume-reading-logstash/115021/2 "2018-01-11T08:35:25Z")

</div>

Set a since\_db path and start\_position to beginning.

[https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-sincedb\_path](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#plugins-inputs-file-sincedb_path)

---

<div class="post-metadata">

**Author:** ![Andualem\_Tilahun](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@Andualem\_Tilahun](https://discuss.elastic.co/u/Andualem_Tilahun)\
**Post date:** [January 11, 2018, 1:13pm UTC](https://discuss.elastic.co/t/resume-reading-logstash/115021/3 "2018-01-11T13:13:47Z")

</div>

Ok. but i don't want to do it manually by my self.i want the logstash to update the since\_db and start\_position.

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [January 11, 2018, 11:40pm UTC](https://discuss.elastic.co/t/resume-reading-logstash/115021/4 "2018-01-11T23:40:40Z")

</div>

Logstash will update all that by itself but you do first need to put those two lines in your config otherwise it won't work.

---

<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:** [February 8, 2018, 11:41pm UTC](https://discuss.elastic.co/t/resume-reading-logstash/115021/5 "2018-02-08T23:41:09Z")

</div>

Closed on February 8, 2018, 11:41pm UTC

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