Hi guys, I am in slight trouble. I installed syslog-ng, configured my stuff and everything is working fine. I am using newsyslog to rotate logs file every 2 MB. newsyslog is invoked via cron and send HUP to the syslog-ng after rotating. File is rotated and compressed but the new file never got any log data again. I then had to restart the syslog-ng process and everyhting works normally after that. Can somebody help here? I am using syslogng 1.6.5 with libol 0.3.14 thx Shahid
On Thu, 2004-09-23 at 03:16, Shahid Shafi wrote:
Hi guys,
I am in slight trouble. I installed syslog-ng, configured my stuff and everything is working fine. I am using newsyslog to rotate logs file every 2 MB. newsyslog is invoked via cron and send HUP to the syslog-ng after rotating. File is rotated and compressed but the new file never got any log data again. I then had to restart the syslog-ng process and everyhting works normally after that. Can somebody help here?
are you sure that newsyslog sends HUP to the correct syslog daemon? IIRC there were problems with newsyslog scripts that they sent the HUP to the PID found in /var/run/syslogd.pid which is not where syslog-ng stores its pid. -- Bazsi
Thanks for your reply. Thats exactly what I found last night. I created a symlink to syslog-ng.pid and everything is working fine. Again thanks and syslg-ng rocks! Shahid On Thu, 23 Sep 2004 13:03:18 +0200, Balazs Scheidler <bazsi@balabit.hu> wrote:
On Thu, 2004-09-23 at 03:16, Shahid Shafi wrote:
Hi guys,
I am in slight trouble. I installed syslog-ng, configured my stuff and everything is working fine. I am using newsyslog to rotate logs file every 2 MB. newsyslog is invoked via cron and send HUP to the syslog-ng after rotating. File is rotated and compressed but the new file never got any log data again. I then had to restart the syslog-ng process and everyhting works normally after that. Can somebody help here?
are you sure that newsyslog sends HUP to the correct syslog daemon? IIRC there were problems with newsyslog scripts that they sent the HUP to the PID found in /var/run/syslogd.pid which is not where syslog-ng stores its pid. -- Bazsi
_______________________________________________ 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 (2)
-
Balazs Scheidler
-
Shahid Shafi