Logrotate RFE (2)

Harry Putnam reader at newsguy.com
Thu Mar 4 13:14:43 UTC 2004


Keith Lofstrom <keithl at kl-ic.com> writes:

> Logrotate is the program called by cron to rename and expire log
> files.  Ruedinger Oertel at SUSE (ro at suse.de) has some patches that
> enhance the basic Redhat logrotate with "dateext".  This allows a
> dated log file extension rather than a numbered one, for example 
> /var/log/messages.20031029 .  The old logfiles do not get renamed,
> just discarded after they get too old.  This is a lot easier on
> rsync, and it also is easier to administer.  

Note: These comments are not well researched... yet, but only a
suggestion to pursue...

I think they do get renamed... like:
 somelog   becomes somelog.0
 somelog.0 becomes somelog.1
 etc

Up to whatever number logrotate.conf is set to rotate `some.log'
Seems like at each hop ... the file would have to be exactly the same
size as its predecessor for this to effect rsync.

> What are the proper steps to get these patches folded into the main
> development path for Fedora Core?  I mentioned this on this list in
> October with a few positive comments, and submitted an RFE to bugzilla:

Are we really sure this is such a good idea?  I don't see any real
advantage over the old way.  And I'm probably not the only one who has
home-made tools that depend on the current naming system.

Seems like adding the date stamp is only dubbling the info already
available in long ls output.





More information about the fedora-devel-list mailing list