Skip to content

The aws_s3 sink is not longer gzipped by default #3064

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

Closed
binarylogic opened this issue Jul 14, 2020 · 3 comments
Closed

The aws_s3 sink is not longer gzipped by default #3064

binarylogic opened this issue Jul 14, 2020 · 3 comments
Assignees
Labels
sink: aws_s3 Anything `aws_s3` sink related type: bug A code related bug. type: help User support and help.

Comments

@binarylogic
Copy link
Contributor

Opening a separate issue for #2966 (comment). The user is reporting that the aws_s3 sink is no longer gzipping files by default. This shouldn't have changed, #2962 was closed and not merged. We should verify that this has not changed before we release 0.10.0.

@binarylogic binarylogic added type: bug A code related bug. sink: aws_s3 Anything `aws_s3` sink related type: help User support and help. labels Jul 14, 2020
@Hoverbear
Copy link
Contributor

Might block #2961

@fanatid
Copy link
Contributor

fanatid commented Jul 15, 2020

Tested v0.9.2 tag and master (df65bf9).

Config:

data_dir = "/home/kirill/tmp/vector-tests/data/shared"

[sources.in]
  type = "socket"
  address = "127.0.0.1:1514"
  mode = "tcp"

[sinks.out]
  inputs = ["in"]
  type = "aws_s3"
  bucket = "vector"
  compression = "gzip" # This line removed for master
  endpoint = "http://localhost:9000"

[sinks.out2]
  inputs = ["in"]
  type = "console"
  encoding = "json"

Both instances received text socket to socket, result on bucket (first v0.9.2, second master):

/ # mc ls local/vector/date=2020-07-15/
[2020-07-15 12:19:55 UTC]     27B 1594815595-a12f6185-7f98-403f-99a3-4f0ba60871f9.log.gz
[2020-07-15 12:31:26 UTC]     27B 1594816286-49ab747c-ba5b-41d0-bdbd-23928a6880f2.log.gz
/ # mc cat local/vector/date=2020-07-15/1594815595-a12f6185-7f98-403f-99a3-4f0ba60871f9.log.gz | gzip -d
socket
/ # mc cat local/vector/date=2020-07-15/1594816286-49ab747c-ba5b-41d0-bdbd-23928a6880f2.log.gz | gzip -d
socket

I do not see any bugs here...

@binarylogic
Copy link
Contributor Author

Thanks for verifying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sink: aws_s3 Anything `aws_s3` sink related type: bug A code related bug. type: help User support and help.
Projects
None yet
Development

No branches or pull requests

3 participants