-
Notifications
You must be signed in to change notification settings - Fork 11
logrotate
Timothy O'Connell edited this page Jan 20, 2018
·
1 revision
On the production host for the Manager/API, there are two files that catch 90% of the info and error logging that the application does:
-
/var/log/kdm-manager/index.log
- the main log for the legacy CGI app. -
/var/log/kdm-manager/gunicorn.log
- the primary location for API logging.
In the production deployment, there are two log rotation scripts in /etc/logrotate.d/
:
/etc/logrotate.d/api.thewatcher
/var/log/kdm-manager/gunicorn.log {
daily
rotate 7
delaycompress
compress
notifempty
missingok
}
/etc/logrotate.d/kdm-manager_index
/var/log/kdm-manager/index.log {
daily
rotate 7
delaycompress
compress
notifempty
missingok
}