-
Notifications
You must be signed in to change notification settings - Fork 394
Application logging settings
wackazong edited this page Feb 24, 2015
·
1 revision
The upstart log settings on a fresh Ubuntu 14.04 are pretty lax, daily log rotation and the log files are kept for a week only. Something you probably do not want to have for a production app.
To change that you need to edit /etc/logrotate.d/upstart. I use this config to rotate them weekly, keep logfiles under 20MB and keep them for about a year (given they do not execeed the size limit of 20MB too often, which also triggers log rotation).
/var/log/upstart/*.log {
weekly
size 20M
missingok
rotate 52
notifempty
nocreate
}