-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 support fof 'sc2s.sgov.gov' in filebeats awss3 input #35088
base: main
Are you sure you want to change the base?
Conversation
❌ Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
This pull request doesn't have a |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
❕ Build Aborted
Expand to view the summary
Build stats
Steps errors
Expand to view the steps failures
|
Are u saying it currently doesn't work at all? What method are u using, polling or sqs? The function shouldn't prevent functionality, it just sets the provider info, if it isn't in that function it defaults to AWS. Based on the AWS SDK https://github.com/aws/aws-sdk-go/blob/main/aws/endpoints/defaults.go, the sc2s endpoints should be auto discovered and work without issue. What version of filebeat are you using? |
In this case is is polling SQS for s3 file create objects. When the beats input aws-s3 goes to query the SQS queue it throughs a region not found error: "failed to get AWS region from queue_url". The issue is the domain in input.go func getProviderFromDomain. x-pack/filebeat/input/awss3/input.go
The SC2S region is even included in the metric beats docs, but not filbeats. |
That error doesn't relate to the function your referencing. You need to set the |
Did the above solve ur problem?? |
The issue with that approach is that is not a configurable option in the AWS CloudTrail from S3 integration. It is possible that it is out of scope for the beats project, but the issue is caused because the input program cannot properly parse the SQS Url. |
What do you mean? That option is absolutely part of the AWS S3 input. It can't parse the URL properly because by default the FQDN is ..amazonaws.com but for the C2S domains, it is ..sc2s.sgov.gov so it need the |
This pull request is now in conflicts. Could you fix it? 🙏
|
1 similar comment
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
This pull request is now in conflicts. Could you fix it? 🙏
|
What does this PR do?
Added the 'sc2s.sgov.gov' domain to Xpack Filebeats awss3 input.go.
This is intended to add support for the aws-s3 input function to work in SC2S AWS.
Why is it important?
This is important because the AWS Cloudtrail from S3 integration doesn't currently work in SC2S. It is unable to recognize the region. Not only that, but it has already been added to MetricBeats. Please see /metricbeats/docs/modules/aws.asciidoc line 70.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs