log rotation recommendations
raggen at passagen.se
Sat Mar 24 22:16:34 UTC 2007
I am not familiar with logrotate but my newsyslog.conf rotates whatever
I want just fine. As an example I have this for a small almost unused
/var/log/httpd-access.log 644 7 1000 24 B
/var/log/httpd-error.log 644 7 1000 24 B
You might want to adjust size settings etc and this can be found in the
man page for newsyslog.conf.
Jeffrey Goldberg skrev:
> Having recently moved from Linux (SuSE) to FreeBSD (6.2-p3) I'm
> wondering what the recommended way of rotating logs (principally postfix
> and apache). I see that logrotate, with which I'm familiar, is in
> ports. I also see that there is a file /etc/newsyslog.conf, but it
> looks like newsyslog(8) only knows about HUPping syslogd.
> If there is no conventional "BSD way of doing this", I'll just install
> logrotate and go with what I know, but I thought I would check here first.
> --Jeffrey Goldberg http://www.goldmark.org/jeff/
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
> --No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.17/731 - Release Date:
> 2007-03-23 15:27
More information about the freebsd-questions