logrotate duplicates for vz-event [message #53746] |
Mon, 10 May 2021 22:27 |
wsap
Messages: 70 Registered: March 2018 Location: Halifax, NS
|
Member |
|
|
Hey folks,
We recently started getting alerts every time logrotate is run like this from a few host nodes:
error: vz-event:1 duplicate log entry for /var/log/vz-events.log
It appears that the disp-helper package has created two different logrotate configs for vz-events.log:
- /etc/logrotate.d/vz-event
- /etc/logrotate.d/collector
The contents of each are identical:
/var/log/vz-events.log {
daily
rotate 3
size 100M
delaycompress
missingok
}
And according to yum whatprovides, both files are supposed to be there...
# yum whatprovides '*vz-event'
disp-helper-1.0.19-2.vz7.x86_64 : Stat collector
Repo : openvz-os
Matched from:
Filename : /etc/logrotate.d/vz-event
# yum whatprovides '*logrotate.d/collector'
disp-helper-1.0.19-2.vz7.x86_64 : Stat collector
Repo : openvz-os
Matched from:
Filename : /etc/logrotate.d/collector
Is the vz-event file or the collector file the correct one going forward? Would like to remove the right one so updates don't create duplicates again in the future. (Both files have the same edited date).
Or perhaps devs need to update the disp-helper package to remove one of them?
Cheers
[Updated on: Tue, 11 May 2021 13:41] Report message to a moderator
|
|
|
Re: logrotate duplicates for vz-event [message #53747 is a reply to message #53746] |
Tue, 11 May 2021 13:46 |
wsap
Messages: 70 Registered: March 2018 Location: Halifax, NS
|
Member |
|
|
Compared the disp-helper package from 7.0.15 with the one in 7.0.16 release and it's clear that the logrotate config file 'collector' was the one that was added, whereas vz-event existed previously.
We're going to assume that collector is the one vz devs wanted there and vz-event was accidentally not removed when collector was added. This fixes it for each node:
[ -f /etc/logrotate.d/collector ] && rm -f /etc/logrotate.d/vz-event
[Updated on: Tue, 11 May 2021 13:51] Report message to a moderator
|
|
|
|