Resume reading Logstash

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

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

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.

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.

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