Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: jncs on November 17, 2007, 01:33:20 AM

Title: Clearing log files in Server Manager
Post by: jncs on November 17, 2007, 01:33:20 AM
Hi folks!

I want to clear my log files (all of them).

How can I do that?

The log files I meant is all the log files that I can see in Server Manager of my SME Server 7.2.
Title: Re: Clearing log files in Server Manager
Post by: CharlieBrady on November 17, 2007, 02:02:36 AM
I want to clear my log files (all of them).

Why?

Quote
How can I do that?

There's no provision for that. You'd need to boot in single user mode, and remove the files, then reboot. But you'd be stupid to do that - the log files are there to help you.
Title: Re: Clearing log files in Server Manager
Post by: Cosmyn on December 04, 2007, 02:43:23 PM
I want that too. Reason? Because mail statistics are not realistic as the result of a virus (which i have remove it now).
Title: Re: Clearing log files in Server Manager
Post by: mmccarn on December 05, 2007, 04:28:28 PM
Which mail statistics are you looking at?  (I know of 3 ways to get mail statistics - from server-manager, from the 'qpsmtpd/state' log file, or using the 'spamfilterstats' contrib).

You can *probably* clear out all email-related stats using
Code: [Select]
sv stop qpsmtpd
sv stop qmail
rm -f /var/log/qpsmtpd/*
rm -f /var/log/qmail/*
sv start qmail
sv start qpsmtpd