On Tuesday, 20 August 2019 01:05:37 BST n952162 wrote:
> I have two gentoo machines, my primary one and one I cloned off of that.
>
> The original gentoo machine has lots of nice /var/log/syslog.1.gz, etc.
> files.
>
> The clone has one big /var/log/syslog file.
>
> I now have logrotate installed in both machines. I see that the
> original has cronie installed and an /etc/cron.daily/logrotate file, but
> that corresponding /etc/logrotate configuration file does not list any
> of the important syslog, kern.log, etc files.
>
> When I do as /etc/cron.daily/logrotate does:
>
>sudo /usr/bin/logrotate -v /etc/logrotate.conf
>
> I get debug output that shows it does only what /etc/logrotate.conf
> tells it to do. And syslog, etc. are not touched.
>
> Could it be that there's another facility that's doing that work?
Installed apps which are cognizant of logrotate install their config for
rotation in /etc/logrotate.d/
The syslog-ng package installs this file by default:
~ # cat /etc/logrotate.d/syslog-ng
#
# Syslog-ng logrotate snippet for Gentoo Linux
# contributed by Michael Sterrett
#
/var/log/messages {
missingok
sharedscripts
postrotate
/etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
endscript
}
which corresponds to the only log file created by syslog-ng as a default. If
you alter the configuration to capture/filter/record different syslog-ng
outputs, then you'll have to add your own logrotate configuration, either in /
etc/logrotate.d/syslog-ng itself, or in additional files.
Are the two systems identical in terms of the syslog-ng config and *all* the
logrotate config files?
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.