What happens when log files get too big?

Log files can grow very large over time. To maintain reasonable log file sizes, you can rotate logs on a schedule.

When you rotate logs automatically, live logs are archived every day at 00:00.

Archived logs are stored in compressed form in a directory alongside the live log. For example, if live logs are stored at <LOG_DIR>/{apps, apache,...}, then compressed log archives are stored at <LOG_ARCHIVE_DIR>/{apps, apache,...}.

The directory structure of the log directory is preserved in the log archive directory.

Note: Empty log files are not compressed.