<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Syslog-ng sometime dies at 04:02</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Verdana">Hi</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">I have installed syslog-ng on RHEL 5 as an RPM (syslog-ng-2.0.8-1.fc8.i386.rpm).</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">It runs fine except for this problem :</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">Every night at 04:02 som script runs and make a reload of the configuration. This comes out</FONT>
<BR><FONT SIZE=2 FACE="Verdana">with some errors in the messages file, but the real problem is, that syslog-ng sometime stops</FONT>
<BR><FONT SIZE=2 FACE="Verdana">running at this time.</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">I'm running syslog-ng together with php-syslog-ng</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Verdana">Hope anyone can help</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">rgds,</FONT>
<BR><FONT SIZE=2 FACE="Verdana">Peter Calum</FONT>
<BR><FONT SIZE=2 FACE="Verdana">Denmark</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Verdana">Feb 19 04:02:04 s_sys@khk9dsg5 syslog-ng[21702]: Configuration reload request received, reloading configuration; </FONT>
<BR><FONT SIZE=2 FACE="Verdana">Feb 19 04:02:04 s_sys@khk9dsg5 syslog-ng[21702]: Internal error, duplicate configuration elements refer to the same persistent config; name='afsocket_sd_connections(stream,AF_UNIX(/dev/log))'</FONT></P>
<P><FONT SIZE=2 FACE="Verdana">Feb 19 04:02:04 s_sys@khk9dsg5 syslog-ng[21702]: Internal error, duplicate configuration elements refer to the same persistent config; name='afsocket_sd_connections(dgram,AF_INET(0.0.0.0:514))'</FONT></P>
<P><FONT SIZE=2 FACE="Verdana">Feb 19 04:02:04 s_sys@khk9dsg5 syslog-ng[21702]: Configuration reload request received, reloading configuration; </FONT>
<BR><FONT SIZE=2 FACE="Verdana">Feb 19 04:02:04 s_sys@khk9dsg5 syslog-ng[21702]: Internal error, duplicate configuration elements refer to the same persistent config; name='afsocket_sd_listen_fd(stream,AF_UNIX(/dev/log))'</FONT></P>
<P><FONT SIZE=2 FACE="Verdana">Feb 19 04:02:04 s_sys@khk9dsg5 syslog-ng[21702]: Configuration reload request received, reloading configuration; </FONT>
<BR><FONT SIZE=2 FACE="Verdana">Feb 19 04:02:04 s_sys@khk9dsg5 syslog-ng[21702]: Internal error, duplicate configuration elements refer to the same persistent config; name='afsocket_sd_listen_fd(stream,AF_UNIX(/dev/log))'</FONT></P>
<P><FONT SIZE=2 FACE="Verdana">My configuration file :</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">options {</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> sync (0);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> chain_hostnames(on);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> stats(43200);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> time_reopen (10);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> log_fifo_size (1000);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> long_hostnames (on);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> use_dns (yes);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> use_fqdn (no);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> create_dirs (no);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> keep_hostname (yes);</FONT>
<BR><FONT SIZE=2 FACE="Verdana">};</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">source s_sys {</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> file ("/proc/kmsg" log_prefix("kernel: "));</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> unix-stream ("/dev/log");</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> internal();</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> udp(ip(0.0.0.0) port(514));</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> tcp(ip(0.0.0.0) port(514));</FONT>
<BR><FONT SIZE=2 FACE="Verdana">};</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">source s_everything { internal(); pipe("/proc/kmsg"); unix-stream("/dev/log"); udp(); };</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Verdana">destination d_cons { file("/dev/console"); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">destination d_mesg { file("/var/log/messages"); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">destination d_auth { file("/var/log/secure"); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">destination d_mail { file("/var/log/maillog" sync(10)); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">destination d_spol { file("/var/log/spooler"); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">destination d_boot { file("/var/log/boot.log"); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">destination d_cron { file("/var/log/cron"); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">destination d_mlal { usertty("*"); };</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">destination d_mysql {</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> program("/usr/bin/mysql -usyslogadmin -psyslogadmin syslog"</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> template("INSERT INTO logs (host, facility, priority, level, tag, datetime, program, msg)</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC','$PROGRAM', '$MSG' );\n")</FONT></P>
<P><FONT SIZE=2 FACE="Verdana"> template-escape(yes));</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> };</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">log {</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> source(s_everything);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> destination(d_mysql);</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> };</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Verdana">filter f_filter1 { facility(kern); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">filter f_filter2 { level(info..emerg) and</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> not facility(mail,authpriv,cron); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">filter f_filter3 { facility(authpriv); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">filter f_filter4 { facility(mail); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">filter f_filter5 { level(emerg); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">filter f_filter6 { facility(uucp) or</FONT>
<BR><FONT SIZE=2 FACE="Verdana"> (facility(news) and level(crit..emerg)); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">filter f_filter7 { facility(local7); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">filter f_filter8 { facility(cron); };</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter1); destination(d_cons); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter2); destination(d_mesg); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter3); destination(d_auth); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter4); destination(d_mail); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter5); destination(d_mlal); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter6); destination(d_spol); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter7); destination(d_boot); };</FONT>
<BR><FONT SIZE=2 FACE="Verdana">log { source(s_sys); filter(f_filter8); destination(d_cron); };</FONT>
</P>
<P><FONT SIZE=2 FACE="Verdana"># vim:set ai ts=4 sw=4 sts=4 et:</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>