[Eug-lug] Limit size of log files?
Mark Turner
amerine at gmail.com
Wed Jan 31 13:09:19 PST 2007
Its fairly easy to limit log file size if you use logrotate. In the
configuration specification for each log you can give it a size
parameter, which will rotate the log when it hits that size.
Example:
# sample logrotate configuration file
/var/log/messages {
rotate 5
weekly
size=100k
postrotate
/sbin/killall -HUP syslogd
endscript
}
On 1/31/07, Matthew Jarvis <mattj at bikefriday.com> wrote:
> Is there a way to globally set how big log files can get?
>
> i.e. maillog, maillog.1, maillog.2
>
> I was hoping that this global setting would also control apache,
> postgres etc but that's prolly asking too much...
>
>
> --
> Matthew S. Jarvis
> IT Manager
> Bike Friday - "Performance that Packs."
> www.bikefriday.com
> 541/687-0487 x140
> mattj at bikefriday.com
> _______________________________________________
> EUGLUG mailing list
> euglug at euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>
More information about the EUGLUG
mailing list