[syslog-ng]rotate files

Nate Campi nate@campin.net
Thu, 16 Jan 2003 10:50:03 -0800


On Wed, Jan 15, 2003 at 11:45:43PM -0200, Sergio A Lima Jr. wrote:
> 
> how to for determine log files rotate in the syslog-ng?

Syslog-ng doesn't rotate logs, not in the way I think you mean it. It is
a feature of syslog-ng that it can be configured to log each day's
messages in a different file, but that's not rotation, that's building
up log archives.

Different OS's come with different mechanisms to rotate logs, meaning
you move the current logfiles to a new file, and reload or restart the
syslog daemon in order to write to new files. Linux usually uses
"logrotate", Solaris has a script called "newsyslog", and I don't have
much idea about others.

You'll need to ask in a forum specific to your OS if you need more than
that.
-- 
Nate Campi   http://www.campin.net 

"Get your facts first, and then you can distort them as much as you 
please." - Samuel Clemens