title: Storing log file in AWS S3 from Spring boot application
body: <p>I am building a Spring-boot application where in all the logging is stored in a specified path in log4j.properties.</p>
  
  <p>I am hosting this application on AWS Beanstalk.</p>
  
  <p>Once I host the application on the AWS, the specified path for the log file will become invalid.</p>
  
  <p>How can I resolve this issue where in the log file should also get stored in a different path in cloud, say Amazon S3, but not on server as the log file takes considerable amount of size.</p>
  
  <pre><code>log4j.appender.file.File=/my_log.log
  </code></pre>
  
  <p>How can I change the above line to store the "my_log.log" in AWS S3?</p>