Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Edward Clarke on December 05, 2003, 11:16:25 PM

Title: Emptying Log Files
Post by: Edward Clarke on December 05, 2003, 11:16:25 PM
How does one empty or clear log files?

Mail Logs, Httpd logs etc.

thanks.

Ed.
Title: Re: Emptying Log Files
Post by: Ray Mitchell on December 06, 2003, 12:39:39 AM
The log files are automatically rotated when they get to a certain size and a number of old logs are retained temporaily, so you don't need to empty them manually.
I haven't done it but I assume you could delete them at the command prompt if you really wanted to clear the logs completely.
see /var/log for the various logs

Regs
Ray
Title: Re: Emptying Log Files
Post by: Lowell Fuher on February 11, 2004, 03:26:37 PM
Would you just delete the file(s) or does it need to see the file even if it is empty?


Quote from: "Ray Mitchell"
The log files are automatically rotated when they get to a certain size and a number of old logs are retained temporaily, so you don't need to empty them manually.
I haven't done it but I assume you could delete them at the command prompt if you really wanted to clear the logs completely.
see /var/log for the various logs

Regs
Ray
Title: Emptying Log Files
Post by: grand-pa on February 11, 2004, 08:35:01 PM
You can delete them without any problem.

It's also possible to modify some files to decrease the number of "old logs" (dated or not).