Bug 5486

Summary: Logrotate suggestion: avoid rotating logs out of existance
Product: [Retired] Red Hat Linux Reporter: Pekka Savola <pekkas>
Component: logrotateAssignee: Erik Troan <ewt>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-11-22 19:11:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pekka Savola 1999-10-04 12:22:21 UTC
This isn't exactly a bug, but submitting a feature
suggestion here seems as good a place as any.

There is a vital option that IMO should be in logrotate.
As it is, the only way I can think of to avoid your logs
rotating out of existance is to have them mailed to some
account which processes them accordingly.

However, IMO having to mail the old logs in order to be able
to archive them somehow is a huge kludge.
An alternative (not necessary the best one) might be moving
it to a directory and renaming it to [logfile].`date
+%d.%m.%Y` or something.

Comment 1 Erik Troan 1999-11-22 19:11:59 UTC
You can set a very high number of rotations and get the proper affect.
Alternately, a prerotate script could copy the last version of the log
to a special directoyr for archival.