bluedenim / log4j-s3-search

Log4j appender with S3, Azure, Google Cloud, and search publishing
MIT License
65 stars 44 forks source link

Minio support. #100

Open davinchia opened 3 years ago

davinchia commented 3 years ago

Supporting logging to Minio would make testing apps that use this logger much easier.

davinchia commented 3 years ago

I was able to log to Minio with the following configuration!

      <Log4j2Appender name="${ctx:job_log_path}-cloud"
      verbose="true"
      stagingBufferAge="1"
      s3Bucket="${s3-bucket}" s3Path="job-logging${ctx:job_log_path}" s3SigningRegion="${s3-region}"
      s3AwsKey="${s3-aws-key}" s3AwsSecret="${s3-aws-secret}"
      s3ServiceEndpoint="${s3-minio-endpoint}" s3PathStyleAccess="true">

The S3 client builder actually supports Minio if the right configuration is written. We should be able to update the documentation.

vly-ginger commented 3 years ago

If I read that correctly, all it takes is setting the service endpoint and enabling path style access?

davinchia commented 3 years ago

yes that is right @vly-ginger !