On 10/12/2010 09:44 AM, PJF wrote:
Hi,

I need to keep at least 1 month of all mail logs, everything that logs via:

/var/qmail/supervise/*/log

I'm hoping I can use something like logrotate to rotate out logfiles, or
have the same functionality of rotated out logs...

Looking at the log/run files I see it reads some settings for multilog from:

LOGSIZE=`cat /var/qmail/control/logsize`
LOGCOUNT=`cat /var/qmail/control/logcount`

Should I just up the logsize? I've got plenty of disk space.

I'm going over the miltilog man page and it is not obvious to me what the
most efficient way of accomplishing this is :)
Any suggestions or a point in the right direction would be appreciated.

Thanks in advance.

--
PJF


---------------------------------------------------------------------------------

There's no easy/stock way to do this specifically by month/time, only size and number. I don't think I'd mess much with logsize, but logcount is fair game.

One option is to increase the logcount value so that you have at least one months worth of data in each log. I think the smtp log is the most verbose, so if you have a large enough value for that, you should be covered. Since you have plenty of space, you could increase logcount to 99999, then see after a month how many you have, and adjust logcount accordingly.

If you want tighter control than that, you could set logcount to 99999, and write s script to delete the logs that are older than whatever period of time you like.

--
-Eric 'shubes'


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
    For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com


Reply via email to