Resume reading Logstash


(Andualem Tilahun) #1

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


(Sjaak) #2

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


(Andualem Tilahun) #3

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.


(Sjaak) #4

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.


(system) #5

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