Clearing archived logs?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Clearing archived logs?

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Clearing archived logs?

Post 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).
Locked