[syslog-ng]Problem with logrotation in RedHat installation!?

Jörgen Ekstedt syslog-ng@lists.balabit.hu
Thu, 4 Nov 2004 07:48:24 +0100


Hi everyone!

Got a problem with logrotation in RedHat9 when using syslog-ng. We are using
the "logrotate" command, and we dont get syslog-ng to change files.

I have included a "postrotate" command in the logrotate.conf file that sends
a -HUP signal to the syslog-ng process, and syslog-ng reports in the logs
that it got received and it is restarting.

But anyway, it still writes its logs to the rotated logfile?

For example

logging messages to file "message.log"

Perform the logrotate command and we get 2 files, "message.log" and
message.log.1"

BUT now syslog-ng writes its logs to message.log.1, and I want it to start
over on the message.log file?

Any clues?

BR