Koozali.org: home of the SME Server

Clearing log files in Server Manager

Offline jncs

  • **
  • 31
  • +0/-0
Clearing log files in Server Manager
« 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.
Jorge Silva

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Clearing log files in Server Manager
« Reply #1 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.

Offline Cosmyn

  • *
  • 12
  • +0/-0
Re: Clearing log files in Server Manager
« Reply #2 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).

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: Clearing log files in Server Manager
« Reply #3 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