Privacy Policy

Guest
  • Guest
  • Guest Topic Starter
2000-06-21T02:37:30Z
Date parsed: 6/21/2000 2:37:30 AM
Date: Wed, 21 Jun 2000 01:37:30 +0200

Hi Mike,

> We'd like to rotate our syslog file more often than daily (e.g. every =
four
> hours). Are there any special steps we should take to do this so as =
not to
> interfere with logging?
>
> E.g., can we
>
> 1) simply rename the file and wait a few minutes and/or until a new =
file
> with the old name appears?

This should work quite well: Rename the log file and wait till a new =
file
with the old name appears.

> 2) Or do we need to stop sl4, rename the file
> and then restart it? (Can we do this programmatically?)

You could use this method, too, of course, and there are many ways to
programmatically start/stop the SL4NT service. Which one is the best one
depends on your programming environment (batch files, script files, VB, =
C++,
etc.). But if you use this method, there's the possibility that some =
syslog
messages get lost while SL4NT isn't running.

Franz