diff --git a/lib/logstash/inputs/file.rb b/lib/logstash/inputs/file.rb index 18f7d5d..d18141b 100644 --- a/lib/logstash/inputs/file.rb +++ b/lib/logstash/inputs/file.rb @@ -221,6 +221,9 @@ def add_path_meta(event, path) end def stop - @tail.quit if @tail # _sincedb_write is called implicitly + # in filewatch >= 0.6.7, quit will closes and forget all files + # but it will write their last read positions to since_db + # beforehand + @tail.quit if @tail end end # class LogStash::Inputs::File