We created a website using AWS EC2 and autoscaling in a typical LAMP (ubuntu) stack.
Scaling, etc. works well, however, since the instances are "temporary", our apache logs are not saved (since we do not save volumes or instances) after the load jumps.
Is there a “best way / most reliable” way to keep our apache logs for these instances?
One idea was to copy the log files to S3 during shutdown by writing a bash script to execute using the /etc/rc0.d function (by running the script at shutdown).
logging amazon-web-services amazon-ec2 autoscaling
Boomshaka
source share