-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a general purpose gzip codec #1817
Comments
gzip codec is something we totally should have. To make it work with file input, we'll have to fix how the file input is implemented. We need to do this improvement anyway, but it is a prerequisite for any gzip codec being usable on the file input. <3 for the idea |
@jordansissel thanks! Another thought is possibly a complete flag of some sort.
Basically like a shell exec Of course you'd have to know this directory of files is static and doesn't have open file handles but that's up to admin to determine. |
The file input currently has no concept of "done processing them". Files are assumed to be live streams that live forever, and as a result have no end. Reaching EOF on a log file generally means "wait a while and more data will show up". Unfortunately, this 'files are live streams' means that folks doing archival or backfilling with old and "complete" logs will be caught without a way to inform Logstash about way to terminate. |
@khornberg gist here: #1895 (comment) Gzip output: |
Hello Everyone, Has this been implemented? |
@Yukti nope, not implemented. PR welcome :) |
This is a quick, not nicely implemented, working alternative: |
I have deleted approximately 15 |
Do we have any news about this? Using PIPE which is another official alternative is probably inefficient. |
Hi, how can we use gzip_lines plugin, logstash to read .gz files? |
Hello Everyone, As from this comment, not yet? |
It's not quite what you all are talking about, but a grassroots codec has recently popped up on RubyGems: https://rubygems.org/gems/logstash-codec-json_gz It is specific to GZIP'd JSON, but the version I downloaded was working well for me. |
What about bzip2? It would be possible to leverage parallel decompression and probably easier to track the progress and pick up processing where it was left if logstash failed or stopped. |
Add gzip codec or file input option for gzipped files
Edit: Add a general purpose gzip codec which can be used in inputs and outputs
The text was updated successfully, but these errors were encountered: