Hide Forgot
For OpenStack services, we have the following example of log rotation settings: [root@controller-0 ~]# cat /etc/logrotate.d/openstack-keystone /var/log/keystone/*.log { rotate 14 size 10M missingok compress } But, some of these services (e.g. keystone), runs on httpd and have logs also created by it: [root@controller-0 ~]# cat /etc/logrotate.d/httpd /var/log/httpd/*log { missingok notifempty sharedscripts delaycompress postrotate /bin/systemctl reload httpd.service > /dev/null 2>/dev/null || true endscript } [root@controller-0 ~]# ls -lh /var/log/httpd/ | grep keystone -rw-r--r--. 1 root root 740K Nov 21 13:56 keystone_wsgi_admin_access.log -rw-r--r--. 1 root root 2,8M Nov 13 03:19 keystone_wsgi_admin_access.log-20161113 -rw-r--r--. 1 root root 3,6M Nov 20 03:38 keystone_wsgi_admin_access.log-20161120 -rw-r--r--. 1 root root 0 Nov 13 03:19 keystone_wsgi_admin_error.log -rw-r--r--. 1 root root 7,0K Nov 11 19:54 keystone_wsgi_admin_error.log-20161113 -rw-r--r--. 1 root root 163K Nov 21 13:50 keystone_wsgi_main_access.log -rw-r--r--. 1 root root 605K Nov 13 03:18 keystone_wsgi_main_access.log-20161113 -rw-r--r--. 1 root root 800K Nov 20 03:33 keystone_wsgi_main_access.log-20161120 -rw-r--r--. 1 root root 0 Nov 13 03:19 keystone_wsgi_main_error.log -rw-r--r--. 1 root root 5,2K Nov 13 03:19 keystone_wsgi_main_error.log-20161113 The problem is that we have duplicated logs that rotate differently so we might have the same issues as we did at https://bugzilla.redhat.com/show_bug.cgi?id=1212482.