-
Notifications
You must be signed in to change notification settings - Fork 149
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
[Logstash 7.16.2] S3 input plugin replaces the region in endpnt url #234
Comments
I can reproduce the same error, however, |
@glen-uc Looks like you are encountering aws/aws-sdk-ruby#2483
[Edit]
in your aws config file |
@robbavey Thank you for your reply. we tried adding
Looks like it's not replacing the
We verified that specified bucket exists and logstash has necessary permissions (it works when we use default endpoint) |
@glen-uc, we're seeing the same issue with the s3 output plugin (logstash-output-s3 v4.3.5), our workaround is to set the endpoint value with 2 region strings, e.g.: s3 {
region => "us-east-1"
endpoint => "https://<our_vpc_endpoint_id>.s3.us-east-1.us-east-1.vpce.amazonaws.com"
} this "tricks" the plugin's logic to replace the first |
@jacqclouseau Thank you for the suggestion I tried your approach by adding one more region to the endpoint URL i.e But still, I am getting
Here is my full logstash s3 input configuration
Note: If i remove the custom endpoint logstash works again so not an issue with the bucket being missing |
@glen-uc, we've encountered the We've seen the name resolution error message when the The certificate validation error was seen when we set the endpoint value to We could reproduce the cert issue without Logstash by running
Looking at the Running Apologies if I went off topic with the cert issue description. |
@jacqclouseau Thank you for the detailed description due to which we were able to solve the problem with logstash Here is what happened in our case We were running logstash in a K8 cluster along with other logging components like fluentbit, when we migrated to using interface endpoints for s3 we first did changes to fluent bit so that it uses the interface endpoint by setting the endpoint to something like this When doing the same for logstash we encountered errors as described above but finally we are able to solve it by setting endpoint URL to something like this Note: not using |
Logstash information:
Please include the following information:
bin/logstash --version
)7.16.2
docker
kubernetes
Shipped with logstash 7.16.2
Description of the problem including expected versus actual behavior:
We have set up an interface endpoint for our S3 service and access S3 bucket via that interface endpoint. when S3 input plugin is configured to use that interface endpoint we get an error saying
Name or service unknown
Here is our configuration:
Here is the error we get
From this error message
Its clear that region is being replaced from the actual endpoint url (actual should be <our_bucket>.<our_vpc_endpoint_id>.s3.us-east-1.vpce.amazonaws.com with the region)
Steps to reproduce:
Please include a minimal but complete recreation of the problem,
including (e.g.) pipeline definition(s), settings, locale, etc. The easier
you make for us to reproduce it, the more likely that somebody will take the
time to look at it.
1.Set up a interface endpoint for S3 -> https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html
2.Use the interface endpoint as endpoint in S3 plugin
3.Deploy the logstash
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: