Problem with logrotation in RedHat installation!?
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
On Thu, Nov 04, 2004 at 07:48:24AM +0100, Jörgen Ekstedt wrote:
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.
For me that's working fine on RHL9, also using logrotate... -- -- Jos Vos <jos@xos.nl> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204
Try adding a touch in the post rotate script "touch /var/log/messages" ? inodecacheing? On Thu, 4 Nov 2004 08:08:28 +0100, Jos Vos <jos@xos.nl> wrote:
On Thu, Nov 04, 2004 at 07:48:24AM +0100, Jörgen Ekstedt wrote:
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.
For me that's working fine on RHL9, also using logrotate...
-- -- Jos Vos <jos@xos.nl> -- X/OS Experts in Open Systems BV | Phone: +31 20 6938364 -- Amsterdam, The Netherlands | Fax: +31 20 6948204
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
participants (3)
-
Dave Johnson
-
Jos Vos
-
Jörgen Ekstedt