Hello All,
I recently experimented with the compression options of the [outputs.file] plugin. You can choose between the “zstd”, “zlib”, and “gzip” methods.
“gzip” is clear to me, that’s what I’m currently using. Decompression under Linux is very easy with:
cat [my_compressed_output] | gunzip | tee [uncompressed_file]
I’m completely unfamiliar with “zstd.” I wanted to use “zlib,” which is known to be used as an algorithm behind the (un)zip program. However, this (zip) is usually applied to individual or multiple files. So I looked for a “stream-like” application such as gunzipfor “zlib” compressed data. To do this, I installed and tested zlib-flate (from qpdf package) and (un)pigz, but with little success: One couldn’t read the compressed file at all, while the other only displayed the first line in plain text and claimed that the rest of the input data was corrupt. ![]()
How would you correctly decompress “zlib” compressed data on Linux? What about “zstd”?
Thanks in advance and best regards,
conne914
