dnk wrote:
On 22-Oct-08, at 9:15 AM, Brent Gardner wrote:
dnk wrote:
Good day,
I was wondering what the rotation schedule was by default on a
toaster for the logs like /var/log/qmail/smtp/current? I am running
the spamdyke stats script against it, but was wanting to get a view
more by day.
Thanks!
DNK
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I believe that log rotation is based not on date/time but on file size
and that the max log file size is set in /var/qmail/control/logsize.
That seems to be correct, as all my logs (old) are 975K.
Would it be considered a bad move to change the log rotation to a time
period (if this is even possible)?
Yes. I don't think it's easily done.
Or I guess I could (and should) just write a script to parse for the
current date with the tai64nlocal tool.
I'd go this route. The qmlog script does some date processing, and might
be useful (using -nl option?) as a front end to the stats program. I
don't think it'd give you precise date boundaries though. You might
consider enhancing qmlog to do this.
Thanks.
DNK
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
--
-Eric 'shubes'
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]