Why ubuntu remove older syslog older than syslog.7.gz by default? How can I prevent that to happen? Thanks
Asked
Active
Viewed 370 times
1 Answers
1
Each package adds a file to /etc/logrotate.d/, that way logrotate knows when to remove or refresh log files for that package.
distcc, for example:
$ dpkg -L distcc | fgrep logrotate
/etc/logrotate.d
/etc/logrotate.d/distcc
So /etc/logrotate.d/distcc contains the rules that logrotate will use.
You need to read the manpage for logrotate.
rsyslog doesn't do anything to rotate or remove log files.
Ken Sharp
- 1,086