-
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
Missing backup and delete for AWS S3 polling mode #41071
Conversation
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? 🙏
|
(cherry picked from commit f47cbd6)
(cherry picked from commit f47cbd6)
Is there a test which would prevent this regression to occur again? |
Proposed commit message
When running Filebeat s3 input polling mode, we suppose to have the options to backup s3 objects into a specific bucket and delete the object after backup.
With this config, objects/logs will be ingested from the bucket specified in bucket_arn into Elasticsearch just fine but no backup or delete happened.
This PR is add the feature back into S3 polling mode when user specifies a backup bucket and/or delete after backup.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
With the same config, after adding this change, rebuild filebeat and we can see the new log
log7
got ingested into Elasticsearch and after ingestion, this file is deleted from thetest-s3-bucket-ks
bucket and copied totest-s3-bucket-ks-backup
bucket.Related issues