Skip to content

Conversation

woshigaopp
Copy link
Contributor

This pull request introduces the new AutoMQ Log Uploader module, which provides asynchronous S3 log upload capabilities for Log4j 1.x. The changes include module setup, configuration documentation, and core implementation files that enable log events to be buffered, compressed, and uploaded to object storage, with support for flexible leader election and configuration strategies.

Module setup and documentation:

  • Added automq-log-uploader/README.md with detailed instructions on integration, configuration options, and leader election strategies for S3 log uploading, making it easier for other modules to adopt and configure the uploader.
  • Created automq-log-uploader/build.gradle to define dependencies and build configuration for the new module, ensuring proper integration with required libraries and submodules.

Core implementation and configuration:

  • Added LogConfigConstants class to centralize all configuration keys, defaults, and documentation for log uploader settings.
  • Implemented DefaultS3LogConfig class to load, normalize, and provide log uploader configuration, including S3 bucket setup, credentials, and dynamic leader election strategy instantiation.
  • Defined the LogRecorder interface and its nested LogEvent class for capturing and validating log events to be uploaded, forming the basis for log event handling in the uploader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant