Modify mtce daemon log rotation config files
This update make the following setting changes to the maintenance log rotation configuration files - add 'create' with permissions to each tuple - add 'delaycompress' - group together log files with similar settings - move global settings ro local settings - remove 'copytruncate' global setting - remove the 'nodateext' global and local setting Test Plan: PASS: Verify log rotation for all mtc log files PASS: Verify no log loss over rotation PASS: Verify log rotation file naming convention PASS: Verify delaycompress on all mtce log files PASS: Verify log permissions after rotate are 0640 Regression: PASS: Verify AIO system install PASS: Verify Standard system install PASS: Verify full and dated collect Change-Id: I623030fa2c1ce4e8085e654ae3fb782c7e520924 Partial-Bug: 1918979 Depends-On: https://review.opendev.org/c/starlingx/config-files/+/784943 Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
This commit is contained in:
parent
0d98938f2b
commit
3c1e9d9601
@ -1,17 +1,19 @@
|
||||
#daily
|
||||
nodateext
|
||||
start 1
|
||||
compress
|
||||
copytruncate
|
||||
notifempty
|
||||
missingok
|
||||
#
|
||||
# Copyright (c) 2018-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/var/log/mtcalarmd.log
|
||||
{
|
||||
create 0640 root root
|
||||
start 1
|
||||
size 10M
|
||||
rotate 20
|
||||
sharedscripts
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
@ -1,15 +1,19 @@
|
||||
#daily
|
||||
nodateext
|
||||
#
|
||||
# Copyright (c) 2015-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/var/log/fsmond.log
|
||||
{
|
||||
size 10M
|
||||
create 0640 root root
|
||||
start 1
|
||||
missingok
|
||||
size 10M
|
||||
rotate 20
|
||||
compress
|
||||
sharedscripts
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
@ -1,16 +1,19 @@
|
||||
#daily
|
||||
nodateext
|
||||
#
|
||||
# Copyright (c) 2020-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/var/log/hostwd.log
|
||||
{
|
||||
nodateext
|
||||
size 10M
|
||||
create 0640 root root
|
||||
start 1
|
||||
missingok
|
||||
size 10M
|
||||
rotate 20
|
||||
compress
|
||||
sharedscripts
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
@ -1,28 +1,21 @@
|
||||
#daily
|
||||
nodateext
|
||||
start 1
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
sharedscripts
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
#
|
||||
# Copyright (c) 2020-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/var/log/hwmond.log
|
||||
{
|
||||
size 50M
|
||||
rotate 5
|
||||
}
|
||||
|
||||
/var/log/hwmond_event.log
|
||||
{
|
||||
size 50M
|
||||
rotate 5
|
||||
}
|
||||
|
||||
/var/log/hwmond_api.log
|
||||
{
|
||||
create 0640 root root
|
||||
start 1
|
||||
size 50M
|
||||
rotate 5
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
@ -1,16 +1,19 @@
|
||||
#daily
|
||||
nodateext
|
||||
#
|
||||
# Copyright (c) 2020-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/var/log/lmond.log
|
||||
{
|
||||
nodateext
|
||||
size 10M
|
||||
create 0640 root root
|
||||
start 1
|
||||
missingok
|
||||
size 10M
|
||||
rotate 20
|
||||
compress
|
||||
sharedscripts
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
15
mtce/src/pmon/scripts/pmon.logrotate
Executable file → Normal file
15
mtce/src/pmon/scripts/pmon.logrotate
Executable file → Normal file
@ -1,16 +1,19 @@
|
||||
#daily
|
||||
nodateext
|
||||
#
|
||||
# Copyright (c) 2015-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/var/log/pmond.log
|
||||
{
|
||||
nodateext
|
||||
size 10M
|
||||
create 0640 root root
|
||||
start 1
|
||||
missingok
|
||||
size 10M
|
||||
rotate 20
|
||||
compress
|
||||
sharedscripts
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
0
mtce/src/pmon/scripts/pmond.conf
Executable file → Normal file
0
mtce/src/pmon/scripts/pmond.conf
Executable file → Normal file
@ -1,7 +1,11 @@
|
||||
#
|
||||
# Copyright (c) 2020-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
/var/log/crash/vmcore.tar
|
||||
/var/log/crash/vmcore_first.tar
|
||||
{
|
||||
nodateext
|
||||
size 1K
|
||||
start 1
|
||||
rotate 1
|
||||
|
@ -1,59 +1,67 @@
|
||||
#daily
|
||||
|
||||
# Apply all these options to all the logs
|
||||
nodateext
|
||||
start 1
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
sharedscripts
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
|
||||
#
|
||||
# Copyright (c) 2015-2021 Wind River Systems, Inc.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
/var/log/mtcAgent.log
|
||||
{
|
||||
size 100M
|
||||
create 0640 root root
|
||||
start 1
|
||||
rotate 10
|
||||
size 100M
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
||||
/var/log/hbsAgent.log
|
||||
{
|
||||
size 20M
|
||||
rotate 5
|
||||
}
|
||||
|
||||
/var/log/mtcClient.log
|
||||
{
|
||||
size 20M
|
||||
rotate 5
|
||||
}
|
||||
|
||||
/var/log/hbsClient.log
|
||||
{
|
||||
size 20M
|
||||
create 0640 root root
|
||||
start 1
|
||||
rotate 5
|
||||
size 20M
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
||||
/var/log/mtclogd.log
|
||||
{
|
||||
size 10M
|
||||
create 0640 root root
|
||||
start 1
|
||||
rotate 5
|
||||
size 10M
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
postrotate
|
||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||
endscript
|
||||
delaycompress
|
||||
}
|
||||
|
||||
# The mtclogd opens and closes these log files on every log addition.
|
||||
# Therefore does not require a notification over log rotation.
|
||||
/var/log/mtcAgent_event.log
|
||||
/var/log/mtcAgent_alarm.log
|
||||
/var/log/mtcAgent_api.log
|
||||
{
|
||||
size 20M
|
||||
create 0640 root root
|
||||
start 1
|
||||
rotate 5
|
||||
}
|
||||
|
||||
/var/log/mtcAgent_event.log
|
||||
{
|
||||
size 20M
|
||||
rotate 5
|
||||
}
|
||||
/var/log/mtcAgent_alarm.log
|
||||
{
|
||||
size 10M
|
||||
rotate 5
|
||||
compress
|
||||
notifempty
|
||||
missingok
|
||||
delaycompress
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user