integ/config-files/syslog-ng-config/files/syslog-ng.logrotate
Kristine Bujold 7e56b74ee8 Add /var/log/armada/ to logrotate
This commit adds /var/log/armada, which stores application related
logs generated by Armada service, to logrotate.

Story: 2003908
Task: 28267
Depends-On: https://review.opendev.org/663347

Change-Id: I98c7caf85cfecf4de1f55be69a00697f9073a1a8
Signed-off-by: Kristine Bujold <kristine.bujold@windriver.com>
2019-06-06 13:43:05 -04:00

109 lines
2.1 KiB
Plaintext

# /etc/logrotate.d/syslog-ng - Provided by syslog-ng-logrotate
/var/log/syslog
/var/log/auth.log
/var/log/cron.log
/var/log/daemon.log
/var/log/daemon-ocf.log
/var/log/kern.log
/var/log/lpr.log
/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/keystone/*.log
/var/log/horizon.log
/var/log/snmp-api.log
/var/log/dcmanager/*.log
/var/log/dcorch/*.log
/var/log/barbican/*.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/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/armada/*.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
{
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
}