Saturday, February 2, 2013

How to deal with log files in AWS EC2

When you are launching your application for production, it's best to keep the logs in a separate drive.

What I typically do is to mount 2 EBS volumes on a instance. One for source code; one for log files.

For convenience, you can mount the source code directory as /var/www and the log files directory as /var/log.

If you are looking for information on how to mount and format a volume, read Amazon EC2 - Mounting a EBS drive.

No comments:

Post a Comment