-
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
[Filebeat] Add support for events triggered by S3 uploads from the AWS console in S3 input #14077
[Filebeat] Add support for events triggered by S3 uploads from the AWS console in S3 input #14077
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
1 similar comment
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
jenkins, test this please |
@darupedk Thanks for adding this 👍 We are working on adding elb fileset in Filebeat aws module and ran into this same problem. Looks like this PR might need a rebase to make CI happy. Could you do that please? |
e88cca8
to
ff69d88
Compare
There we go. In case we want full support for create events, we need to support the complete list of events:
I haven't inspected the Post and Copy events (JSON) which is why I haven't added them. However, we could do |
I have just inspected them and they do follow the same structure. I recommend changing the code to use |
jenkins, test this please |
TestHandleMessage is failing due to the following invalid S3 event:
We can go ahead and validate the events a bit more in the code but AWS would never send a message like this. We could instead replace the test message with |
Changing to |
ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we will need to backport this
Thanks! I will merge it now and backport it. |
…d by S3 uploads from the AWS console in S3 input (#14109) * [Filebeat] Add support for events triggered by S3 uploads from the AWS console in S3 input (#14077) * Added support for events triggered by S3 uploads from the AWS console * Changed code to match any ObjectCreated events (cherry picked from commit 00bd5b6)
…S console in S3 input (elastic#14077) * Added support for events triggered by S3 uploads from the AWS console * Changed code to match any ObjectCreated events
…riggered by S3 uploads from the AWS console in S3 input (elastic#14109) * [Filebeat] Add support for events triggered by S3 uploads from the AWS console in S3 input (elastic#14077) * Added support for events triggered by S3 uploads from the AWS console * Changed code to match any ObjectCreated events (cherry picked from commit d233c6d)
ObjectCreated:CompleteMultipartUpload
event in S3 input