OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: logfiles are too big

From: LuKreme (kremelskreme.com)
Date: Thu Apr 01 2004 - 15:51:37 CST


On Thursday, Apr 1, 2004, at 11:58 America/Denver, Andreas Braukmann
wrote:

> --On Donnerstag, 1. April 2004 08:58 Uhr -0700 LuKreme
> <kremelskreme.com> wrote:
>> how about on bsd where logrotate does not appear to exist?
>> (rotatelogs exists,
>> but is apache specific).
>
> man newsyslog
>
>> if I change the log for mail to
>>
>> mail.info /var/log/postfix
>>
>> then postfix doesn't get rotated.
>
> The default entry in /etc/syslogd.conf is:
> mail.info /var/log/maillog
>
> Why did you bother to change it?

tab completion when accessing the log

/v<tab>/l<tab>/p<tab>

instead of

/v<tab>/l<tab>/ma<tab>

(yes, sheer laziness :)

Also, at one point I was going to log errors into postfix and info into
maillog or something... never got that far though.

> /var/log/maillog 640 7 * T00 J

COol. I've been looking for tthat for ages and no one I've asked has
answered or known.

--
Instant karma's gonna get you