Logstash s3 input plugin not processing gz files

I have the cofiguration for processing s3 gz files.
But getting below error,
[2019-04-19T20:38:33,341][ERROR][logstash.inputs.s3 ] Failed to read the file. Skip processing. {:filename=>"C:/Users/mgurupr1/home/logstash/testdata.gz", :exception=>"Not in GZIP format"}
The configuration is as follows:

input {
s3 {
      access_key_id => "access key"
      bucket => "bucketname"
      secret_access_key => "secret"
      endpoint => "endpoint"
     prefix => "prefix"
      add_field => { source => gzfiles }
additional_settings => {
      "force_path_style" => true

Can someone please help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.