
This change addresses 2 things: 1 ) After log rotation, keystone.log does not get appended with new lines. Flag copytruncate in logrotate address this by truncating the log file instead of moving after compressing. 2 ) Doubles the size of the file to allow for more information to be logged. With proper access logging now, which logs every request, it's necessary have a bigger size. Test plan: PASS: Run a full build, install, bootstrap and unlock. Install DC system with subclouds. Fm alarm list. PASS: Verify that /var/log/keystone/keystone.log has information in the format specified. Story: 2011106 Task: 51139 Change-Id: I87696b66fb7cf3a4a015e302e2bde0583b0a6918 Signed-off-by: Rei Oliveira <Reinildes.JoseMateusOliveira@windriver.com>
159 lines
3.1 KiB
Plaintext
159 lines
3.1 KiB
Plaintext
# /etc/logrotate.d/syslog-ng - Provided by syslog-ng-logrotate and merged with syslog.logrotate
|
|
/var/log/syslog
|
|
/var/log/auth.log
|
|
/var/log/cron.log
|
|
/var/log/daemon.log
|
|
/var/log/daemon-ocf.log
|
|
/var/log/containerd.log
|
|
/var/log/kern.log
|
|
/var/log/lpr.log
|
|
/var/log/mail.info
|
|
/var/log/mail.warn
|
|
/var/log/mail.err
|
|
/var/log/mail.log
|
|
/var/log/news.log
|
|
/var/log/user.log
|
|
/var/log/uucp.log
|
|
/var/log/local*.log
|
|
/var/log/postgres.log
|
|
/var/log/postgresql.log
|
|
/var/log/haproxy.log
|
|
/var/log/platform.log
|
|
/var/log/openstack.log
|
|
/var/log/sysinv.log
|
|
/var/log/sysinv-api.log
|
|
/var/log/nfv-vim-api.log
|
|
/var/log/nfv-vim-webserver.log
|
|
/var/log/horizon.log
|
|
/var/log/barbican/barbican-keystone-listener.log
|
|
/var/log/barbican/barbican-worker.log
|
|
{
|
|
nodateext
|
|
size 10M
|
|
start 1
|
|
rotate 20
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/keystone/*.log
|
|
{
|
|
nodateext
|
|
size 20M
|
|
start 1
|
|
rotate 20
|
|
copytruncate
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/rss-memory.log
|
|
/var/log/collectd.log
|
|
{
|
|
nodateext
|
|
size 10M
|
|
start 1
|
|
rotate 10
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/nfv-vim.log
|
|
{
|
|
nodateext
|
|
size 20M
|
|
start 1
|
|
rotate 40
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/collect.log
|
|
/var/log/ldapscripts.log
|
|
/var/log/tuned/tuned.log
|
|
/var/log/flux/*.log
|
|
{
|
|
nodateext
|
|
size 10M
|
|
start 1
|
|
rotate 20
|
|
missingok
|
|
notifempty
|
|
compress
|
|
copytruncate
|
|
}
|
|
|
|
/var/log/sm.log
|
|
/var/log/ima.log
|
|
{
|
|
nodateext
|
|
size 50M
|
|
start 1
|
|
rotate 10
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
postrotate
|
|
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/bash.log
|
|
/var/log/sshlog.log
|
|
{
|
|
nodateext
|
|
size 100M
|
|
start 1
|
|
rotate 20
|
|
missingok
|
|
notifempty
|
|
compress
|
|
sharedscripts
|
|
firstaction
|
|
/usr/bin/logmgmt_prerotate > /dev/null 2>&1 || true
|
|
endscript
|
|
# using lastaction to ensure log file compression succeeds
|
|
lastaction
|
|
service syslog-ng reload > /dev/null 2>&1 || true
|
|
/usr/bin/logmgmt_postrotate > /dev/null 2>&1 || true
|
|
endscript
|
|
}
|
|
|
|
/var/log/debug
|
|
/var/log/messages
|
|
/var/log/error
|
|
{
|
|
rotate 4
|
|
weekly
|
|
missingok
|
|
notifempty
|
|
compress
|
|
delaycompress
|
|
sharedscripts
|
|
postrotate
|
|
invoke-rc.d syslog-ng reload > /dev/null
|
|
endscript
|
|
}
|
|
|