<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<pre style="word-wrap:break-word; font-size:10.0pt; font-family:Tahoma; color:black">You are missing the -p in front of the "info.local3" AND it should be local3.info when you use the logger command.
--
Evan Rempel
Senior Systems Administrator, Data Centre Services
University of Victoria
250.721.7691
David Stainton <dstainton415@gmail.com> wrote:
</pre>
<div>
<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'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 ("/proc/kmsg" program_override("kernel: "));</div>
<div> unix-stream ("/dev/log");</div>
<div> internal();</div>
<div> unix-stream ("/var/named/chroot/dev/log" optional(yes));</div>
<div>};</div>
<div><br>
</div>
<div>destination d_mesg { file("/var/log/messages"); };</div>
<div>destination d_app { file("/var/log/philotic/$PROGRAM.log"); };</div>
<div>destination d_app_event { file("/var/log/philotic/$PROGRAM-event.log"); };</div>
<div>destination d_philotic { file("/var/log/philotic/$PROGRAM.log"); };</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>
</div>
</body>
</html>