On Fri, Feb 6, 2009 at 08:34, Rainer Gerhards <[email protected]> wrote: > I have updates for omfile on my mind which would go in a direction that, > I think, is close. One of the things is that I would like to enable the > output writer to start new files when, for example > > - a specific period of time has elapsed > - a specific file size has been reached > - a specific number of messages has been logged > ... > > I intended to work on the size issue first and use the stream class that > was originally developed for the queue. That class supports automatic > file naming and numbering (that's how the queue files are generated). It > can be set to circular logging (used by the queue, with a modul of > 1,000,000 if I remember correctly out of my head) or monotonically > increasing file numbers (up to the long long modul). > > Does this go into the same direction?
It definitely satisfies my original need, particularly if they could eventually be reset on HUP as well. If I have multiple streams logging to a dedicated partition, it would be preferable to have an outside job watching the partition's status and HUP (or similar) rsyslog when it needs to archive and make more space, as opposed to trying to configure each stream's size individually. _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

