Re: Logrotate - daily log files for a month

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thu, 2007-08-23 at 15:27 +0100, John Horne wrote:
>> this does not account for month's of 31 days, or February with 28/29
>> days 

Tim:
> I'd guess that you'd have to do what banks do:  Do your activities on
> the first of the month.  If you do it close after midnight, you keep the
> last month's work, and start a new month's, hoping that you want nothing
> in the last few moments to be part of this month's data.

Another thought:  Post-process just the .1 log after the rotation, so
the system rotations doesn't upset your logs (you don't miss things).
Use a script that writes your own logs to dated files, appending the
data to the right date files (that takes care of some of yesterdays and
some of todays messages in the processed log).  Handled your own dated
logs separately from the system, and let the system rotate and remove
its own logs as it usually does.

-- 
[tim@bigblack ~]$ uname -ipr
2.6.22.1-41.fc7 i686 i386

Using FC 4, 5, 6 & 7, plus CentOS 5.  Today, it's FC7.

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux