how to configure for circular log rotation

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

how to configure for circular log rotation

Postby delphi329 on Sat Jan 05, 2008 8:55 am

Hi:

don't know whether this is possible. I would like to like to have log file rotate to a new file name when max size, or max number of entries, is reached. E.g. Log start with log.0000 and when the file reaches max file size, new logs goes to log.0001, and continue until log.9999. At that point, when it is filled, wipes log.0000 and starts writing to it.

thanks,

-john
delphi329
New
 
Posts: 6
Joined: Fri Jan 04, 2008 2:24 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

RE: how to configure for circular log rotation

Postby rgerhards on Wed Jan 09, 2008 11:57 am

Hi John,

sorry, I am currently extremely busy coding new features. My replies are a bit sluggish. I think you can get away with the current $outchannel directive (see log). However, as a side effect of what I am currently implementing, circular log rotation could be a very easy addition to the regular file output (and easier to use than the $outchannel directive, which will go away at some time - its legacy of a philosophy that didn't work out).

The bottom line is that I'd say in a week or so there will be a new method for circular logging, easier to use. But that will be a v3 develoment branch build.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron