-
Notifications
You must be signed in to change notification settings - Fork 456
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
[Stack 8.16.0-SNAPSHOT] [crowdstrike] Failing test daily: system test: default in crowdstrike.fdr #10647
[Stack 8.16.0-SNAPSHOT] [crowdstrike] Failing test daily: system test: default in crowdstrike.fdr #10647
Comments
I think this may be a result of elastic/beats#40309 which was first introduced in Elastic Agent v8.15.0. The cause is that the SQS notification does not contain a region so the new cross-region compatibility code fails when the region is empty string. I think we need to make a check for empty region here and reuse the pre-made AWS client that derives the region from the SQS URL. WorkaroundAs a temporary workaround, I suggest modifying the "FDR Notification Parsing Script" to statically set the appropriate s3 region name. I verified this in our aws integration test. });
files.forEach(function(f){
var evt = new S3EventV2();
+ evt.SetAWSRegion("us-east-1");
evt.SetS3BucketName(bucket);
evt.SetS3ObjectKey(f.path);
evts.push(evt); |
From running the system test locally on v8.15.0, the error logged by the input is {
"log.level": "warn",
"@timestamp": "2024-08-23T16:50:05.406Z",
"message": "Failed processing SQS message.",
"component": {
"binary": "filebeat",
"dataset": "elastic_agent.filebeat",
"id": "aws-s3-default",
"type": "aws-s3"
},
"log": {
"source": "aws-s3-default"
},
"service.name": "filebeat",
"ecs.version": "1.6.0",
"log.logger": "input.aws-s3",
"log.origin": {
"file.line": 182,
"file.name": "awss3/sqs_input.go",
"function": "github.com/elastic/beats/v7/x-pack/filebeat/input/awss3.(*sqsReaderInput).workerLoop"
},
"message_id": "07c6cc02-fa16-4860-a401-367a5d47adb9",
"elapsed_time_ns": 9348291,
"id": "aws-s3-crowdstrike.fdr-208cffc8-3fec-4889-a98d-9c825a4e746a",
"queue_url": "https://sqs.us-east-1.amazonaws.com/144492464627/elastic-package-crowdstrike-queue-93717",
"error": {
"message": "failed processing SQS message (it will return to queue after visibility timeout): failed processing S3 event for object key \"fdrv2/aidmaster\" in bucket \"elastic-package-crowdstrike-fdr-93717\" (object record 1 of 3 in SQS notification): S3 download failure: s3 GetObject failed: operation error S3: GetObject, resolve auth scheme: resolve endpoint: endpoint rule error, Invalid region: region was not a valid DNS name.; failed processing S3 event for object key \"fdrv2/userinfo\" in bucket \"elastic-package-crowdstrike-fdr-93717\" (object record 2 of 3 in SQS notification): S3 download failure: s3 GetObject failed: operation error S3: GetObject, resolve auth scheme: resolve endpoint: endpoint rule error, Invalid region: region was not a valid DNS name.; failed processing S3 event for object key \"data\" in bucket \"elastic-package-crowdstrike-fdr-93717\" (object record 3 of 3 in SQS notification): S3 download failure: s3 GetObject failed: operation error S3: GetObject, resolve auth scheme: resolve endpoint: endpoint rule error, Invalid region: region was not a valid DNS name."
}
} |
PR for 8.16: elastic/beats#40628 |
Failure:
First build failed: https://buildkite.com/elastic/integrations/builds/14131
Latest 5 failed builds:
The text was updated successfully, but these errors were encountered: