Page 1 of 1

Clearing archived logs?

Posted: Thu May 03, 2012 11:41 am
by mitchsmith
Hi

Overtime the archived logs have increased to fill large amounts of disk space.

Is there any method to remove logs older than a set time / if I remove logs from the archive is there any negative impact to the nagios functionality?

thanks

Mitchell

Re: Clearing archived logs?

Posted: Fri May 04, 2012 10:58 am
by agriffin
There shouldn't be any negative effects to removing the log files, other than losing the information that was contained in them. To automate the process you should look into logrotate. Creating a config will allow the system to manage deletion of the logs for you. Just take a look at its man page for information (man logrotate).