Koozali.org: home of the SME Server

how to edit/remove log files?

thefishguy

how to edit/remove log files?
« on: November 15, 2004, 11:58:17 PM »
I am using sme as a proxy server.I can view the log online.but I want to download the log and delete them.how do I remove the logs ?
thanks!!

RavenIV

how to edit/remove log files?
« Reply #1 on: November 16, 2004, 02:19:06 AM »
use ssh to log into your server as root.
the go to /var/log and view/delete the logfiles.

but be careful, there are symlinks to the files.
for example "maillog" is a links to "maillog.123456789".
"ls -al" shows you which file is referenced by the link.

you may delete all files that do not have a link to.

cheers