diff --git a/lib/logstash/outputs/s3/temporary_file_factory.rb b/lib/logstash/outputs/s3/temporary_file_factory.rb index 7695ac02..21a98abe 100644 --- a/lib/logstash/outputs/s3/temporary_file_factory.rb +++ b/lib/logstash/outputs/s3/temporary_file_factory.rb @@ -100,7 +100,7 @@ class IOWrappedGzip def initialize(file_io) @file_io = file_io - @gzip_writer = Zlib::GzipWriter.open(file_io) + @gzip_writer = Zlib::GzipWriter.new(file_io) end def path