Hi Scott, > Seth Vidal asks a good question: > > http://skvidal.wordpress.com/2008/01/16/fixed-size-log-outputs/ > > Basically he wants to know if you can have syslog output a fixed log > size, and the roll to another name? So say I only wanted 1 meg log > files, and then after I reach 1 meg change the name too foobar.log.1 > or something. > > I swear I thought this was possible with rsyslog, but I can't find > anything in the docs. Is it possible? Was I hallucinating when I > remembered this feature?
Logrotate is able to rotate based on file size. What you could do (as a workaround if rsyslog can't do it directly) is use inotify or a similar tool to monitor the log file and then when it reaches the size you want call logrotate to do the logrotation. Regards, Michael. > -- > Scott Baker - Canby Telcom > RHCE - System Administrator - 503.266.8253 > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog ------- End of Original Message ------- _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog

