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