This attempt has thus failed to allow Logstash to read gzipped files. It is based off of the line codec.
I think it is because of the way Logstash buffers the input stream. It seems that a delimiter is required that will not be there in the gzipped files.
The spec file gzip_spec.rb
passes with out issue.
The trouble starts when I run bin/logstash agent -f gzip.conf --debug
. Either I get not output or I get Error: Unexpected end of ZLIB input stream
on larger files.
One can reproduce the nothing error by creating a file with echo "hello world" | gzip > file.gz
and running the gzip.conf
.
One can reproduce the end of ZLIB input stream
error by creating a gzipped file of the logstash README.md.