Re: Rotating logs (and keeping the log's tail)
> > > 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.
Say the logs you want to stat are:
/var/log/event-logs/log.week0
/var/log/event-logs/log.week1
etc.
Doesn't something along the lines of:
$ logrotate
$ cat /var/log/event-logs/log.week[01] | pagehits-stats
address this?
Or am I misunderstanding your question?
CJ
Reply to: