I noticed the size of my /var/log/sudo.log file getting very large and was wondering if there is some sort if sudo setting that says when the sudo.log file should be archived. There are two other sudo archive files on the system called sudo.log.1.gz and sudo.log.2.gz.
Is this a sudo setting or some other Linux setting that archives all log files when they get to a certain size. Thanks, Matt |
Take a look at:
/etc/logrotate.d/syslog You should see something similar to /var/log/sudo.log { postrotate /usr/bin/killall -HUP syslogd endscript } sudo.log.1.gz and sudo.log.2.gz are your compressed files. also read man logrotate. It will help you configure logrotate |
All times are GMT -5. The time now is 09:02 AM. |