<div dir="ltr"><br><div><br></div><div style>Greetings,</div><div style><br></div><div style>I am running syslog-ng-3.3.5-1 on CentOS release 6.3.</div><div style><br></div><div style>It seems like there is a subtle bug in syslog-ng or more likely a bug in my syslog-ng configuration. I am unable to get log message to appear in the other destinations besides /var/log/messages...</div>
<div style><br></div><div style>I&#39;ve tried testing like this:</div><div style><br></div><div style>logger info.local3 howdy</div><div style><div>logger info.local5 howdy</div><div><div>logger info.local6 howdy</div></div>
<div><div>logger emerg.local6 howdy</div></div><div><br></div><div style>However the log messages only show up in /var/log/messages.</div><div style>I wonder why!</div><div style>Any help, observations or suggestions would be much appreciated.</div>
</div><div style><br></div><div style>Thanks!</div><div style>David</div><div style><br></div><div style><br></div><div style>PS Here is my simple config:</div><div style><br></div><div style><div>@version: 3.3</div><div>
<br></div><div>options {</div><div>  create_dirs (yes);</div><div>  dir_perm(0755);</div><div>  keep_hostname (yes);</div><div>  perm(0644);</div><div>  flush_lines (0);</div><div>  time_reopen (10);</div><div>  use_dns (yes);</div>
<div>  use_fqdn (no);</div><div>};</div><div><br></div><div>source s_sys {</div><div>  file (&quot;/proc/kmsg&quot; program_override(&quot;kernel: &quot;));</div><div>  unix-stream (&quot;/dev/log&quot;);</div><div>  internal();</div>
<div>  unix-stream (&quot;/var/named/chroot/dev/log&quot; optional(yes));</div><div>};</div><div><br></div><div>destination d_mesg { file(&quot;/var/log/messages&quot;); };</div><div>destination d_app { file(&quot;/var/log/philotic/$PROGRAM.log&quot;); };</div>
<div>destination d_app_event { file(&quot;/var/log/philotic/$PROGRAM-event.log&quot;); };</div><div>destination d_philotic  { file(&quot;/var/log/philotic/$PROGRAM.log&quot;); };</div><div><br></div><div>filter f_info { level(info..emerg) };</div>
<div><br></div><div>filter f_default    { level(info..emerg)</div><div>  and not (</div><div>    facility(mail)</div><div>    or</div><div>    facility(authpriv)</div><div>    or</div><div>    facility(cron)</div><div>    or</div>
<div>    facility(local6)</div><div>    or</div><div>    facility(local5)</div><div>    or</div><div>    facility(14)</div><div>  );</div><div>};</div><div><br></div><div>filter f_app_event { facility(local3); };</div><div>
filter f_app   { facility(local6); };</div><div>filter f_philotic   { facility(local5); };</div><div><br></div><div>log { source(s_sys); filter(f_default); destination(d_mesg); };</div><div>log { source(s_sys); filter(f_info); filter(f_app); destination(d_app); };</div>
<div>log { source(s_sys); filter(f_info); filter(f_app_event); destination(d_app_event); };</div><div>log { source(s_sys); filter(f_info); filter(f_philotic); destination(d_philotic); };</div><div><br></div></div></div>