Skip to content
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

enhancement (aws_s3 source): Logs processed S3 objects #22083

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fdamstra
Copy link
Contributor

Summary

Adds log events for each object processed from S3 to add an audit trail. This is similar to the events that are logged for the file source (started watching, stopped watching).

If acknowledgements on the sink are enabled, then this will also log completion of the object.

Unlike the aws_sqs source, which converts sqs messages to logs, the aws_s3 source consumes objects that usually contain many logs.

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

How did you test this PR?

Deployed to our test and dev environments, with pipelines that have acknowledgements enabled and others that have it disabled. Reviewed logging.

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the "no-changelog" label to this PR.

Checklist

  • Please read our Vector contributor resources.
  • If this PR introduces changes Vector dependencies (modifies Cargo.lock), please
    run dd-rust-license-tool write to regenerate the license inventory and commit the changes (if any). More details here.

References

Unlike the `aws_sqs` source type, the sqs messaage itself is not the
source of events. This logs the bucket and key for files that were
ingested via vector in order to have a better audit log.

If acknowledgements are enabled, it also logs when they are
successfully processed.
@fdamstra fdamstra requested a review from a team as a code owner December 26, 2024 16:32
@github-actions github-actions bot added the domain: sources Anything related to the Vector's sources label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sources Anything related to the Vector's sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_s3 source should log what it's ingesting
1 participant