Skip to content

enable force-decoding with decode_gzip => force#185

Open
yaauie wants to merge 1 commit into
logstash-plugins:mainfrom
yaauie:force-gzip-decoding
Open

enable force-decoding with decode_gzip => force#185
yaauie wants to merge 1 commit into
logstash-plugins:mainfrom
yaauie:force-gzip-decoding

Conversation

@yaauie

@yaauie yaauie commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

Replaces #181

Enables users to force gzip decoding on files that are not named with gzip-style extensions. I explicitly avoided using a boolean-style variable as proposed in #181 because the default being false lead to false assumptions (e.g., is_gzipped=>false would not disable gzip decompression).

Comment thread lib/logstash/inputs/s3.rb Outdated
@gzip_detector = case @decode_gzip
when "force" then -> (_) { true }
when "detect" then -> (filename) { filename.end_with?('.gz','.gzip') }
else fail(LogStah::ConfigurationError, "unsupported value `#{@decode_gzip}` for decode_gzip")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logstah::ConfigurationError is missing an 'S'. Otherwise, LGTM pending successful CI.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂

@apatnaik14

Copy link
Copy Markdown

Hello @yaauie! I was hoping to check if there is a release plan for this change to be merged into master? And if there is a tentative date for it?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants