[syslog-ng]syslog-ng log file rotation based on size

Balazs Scheidler bazsi@balabit.hu
Sun, 2 Feb 2003 12:14:42 +0100


On Sat, Feb 01, 2003 at 10:33:03AM -0800, Nate Campi wrote:
> standpoint it's sometimes best to keep them smaller and deal with them
> in smaller chunks anyways; especially when you need to rotate logs off a
> machine to save local disk space.
> 
> Any hope of such a feature Bazsi? Perhaps in syslog-ng 2?

I don't really want to bloat syslog-ng too much with log rotation, unless
the feature is general enough.

The possibility to call an external program regularly for each file
destination would be fine, however how often should this program be called?

Or create three options like:

rotate_program
rotate_if_older
rotate_if_larger

And pass the file to be rotated to rotate_program?

rotate_if_older would be problematic as syslog-ng has no information when it
started to write to a given file.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1