<br><br><div><span class="gmail_quote">On 6/2/07, <b class="gmail_sendername">Mogens Kjaer</b> <<a href="mailto:mk@crc.dk">mk@crc.dk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mark Quitoriano wrote:<br>> how do i prevent the logfiles from getting 2GB of file. what should i<br>> set in<br>> logrotate?<br><br>How often do you rotate the logs today?<br><br>Maybe you can do it more often, change "monthly" to
<br>"weekly" in /etc/logrotate.conf<br><br>man logrotate will tell you how to rotate based on<br>size. If the log file gets to 2G in one day you might<br>need to move the file logrotate from /etc/cron.daily<br>to /etc/cron.hourly
<br><br>Mogens<br><br>--<br>Mogens Kjaer, Carlsberg A/S, Computer Department<br>Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark<br>Phone: +45 33 27 53 25, Fax: +45 33 27 47 08<br>Email: <a href="mailto:mk@crc.dk">mk@crc.dk
</a> Homepage: <a href="http://www.crc.dk">http://www.crc.dk</a><br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">
http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>weekly, i just changed it do daily. Is there a way to rotate it by size of file? instead of time?<br><br><br>