LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   When does sudo.log archive itself? (https://www.linuxquestions.org/questions/linux-general-1/when-does-sudo-log-archive-itself-1383/)

mmboam 03-19-2001 06:58 PM

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

aimstr8 04-24-2001 12:40 AM

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.