Re: Re: Rotating logs (and keeping the log's tail)
Chris Jones wrote:
> Frank Lin PIAT wrote:
> > On Thu, 2009-05-07 at 14:01 +0200, Sjoerd Hardeman wrote:
> > > Frank Lin PIAT wrote:
> > > > I use a wiki engine that produces an event log, which I want to
> > > > rotate.
> > > >
> > > > Because the event-log is used to display the "PageHits", I don't
> > > > want to truncate the log every Monday. I wish the log could
> > > > contain the last week, plus the current week, so the statistics
> > > > are never empty.
> Doesn't something along the lines of:
> $ cat /var/log/event-logs/log.week | pagehits-stats
The problem is that the wiki engine only parse the current log file to
display the current statistics, by design :(
The long term solution is to modify the wiki engine, but I need a
solution until Squeeze is released.
(Actually, my problem is exactly the same as the command "last", which
only parses /var/log/wtmp).