title: log4j with an elastic beanstalk cluster
body: <p>I managed it to log my application with apache commons logging via log4j.</p>
  
  <p>Now I can write my logfiles i.e. to /var/log/whatever. My question is, what if the beanstalk scales up? Then I have multiple logfiles. Lets say I have a 100 instances then I have 100 logfiles. And what happens to my logfiles, when the beanstalk scales down again?</p>
  
  <p>Is there a soultion, that I dont need to download each logfile from each node, having them on one place? On an S3 i.e.?</p>
  
  <p>** Edit **</p>
  
  <p>I figured out a way to save the logfiles of each instance on a S3 instance. But that doesn't seem like a good solution, because if I have to search for something, it's pretty bad to search through the logs of 100 instances.</p>
  
  <p>Any idea how to get them all together?</p>