Hello.<div>Can you help me with syslog-ng 3.3 on the CentoOS 5.5 with MongoDB 1.6</div><div>I install syslog-ng version 3.3 where mongodb support exists. But when I add to the config mongodb destination I get an error:</div>
<div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Starting syslog-ng: Error parsing destination, destination plugin mongodb not found in /etc/syslog-ng/syslog-ng.conf at line 70, column 5:<br>    mongodb(<br>    ^^^^^^^</blockquote><div><br></div><div><div>syslog-ng.conf</div>
<div><br></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
@version: 3.3<br>#<br># configuration file for syslog-ng, customized for remote logging<br>#<br>source s_internal { internal(); };<br>destination d_syslognglog { file(&quot;/var/log/syslog-ng.log&quot;); };<br>log { source(s_internal); destination(d_syslognglog); };<br>
# Local sources, filters and destinations are commented out<br># If you want to replace sysklogd simply uncomment the following<br># parts and disable sysklogd<br>#<br># Local sources<br>#<br>source s_local {<br><span class="Apple-tab-span" style="white-space:pre">        </span>unix-dgram(&quot;/dev/log&quot;);<br>
<span class="Apple-tab-span" style="white-space:pre">        </span>file(&quot;/proc/kmsg&quot; program_override(&quot;kernel&quot;));<br>};<br>#<br># Local filters<br>#<br>filter f_messages { level(info..emerg); };<br>filter f_secure { facility(authpriv); };<br>
filter f_mail { facility(mail); };<br>filter f_cron { facility(cron); };<br>filter f_emerg { level(emerg); };<br>filter f_spooler { level(crit..emerg) and facility(uucp, news); };<br>filter f_local7 { facility(local7); };<br>
#<br># Local destinations<br>#<br>destination d_messages { file(&quot;/var/log/messages&quot;); };<br>destination d_secure { file(&quot;/var/log/secure&quot;); };<br>destination d_maillog { file(&quot;/var/log/maillog&quot;); };<br>
destination d_cron { file(&quot;/var/log/cron&quot;); };<br>destination d_console { usertty(&quot;root&quot;); };<br>destination d_spooler { file(&quot;/var/log/spooler&quot;); };<br>destination d_bootlog { file(&quot;/var/log/boot.log&quot;); };<br>
#<br># Local logs - order DOES matter !<br>#<br>log { source(s_local); filter(f_emerg); destination(d_console); };<br>log { source(s_local); filter(f_secure); destination(d_secure); flags(final); };<br>log { source(s_local); filter(f_mail); destination(d_maillog); flags(final); };<br>
log { source(s_local); filter(f_cron); destination(d_cron); flags(final); };<br>log { source(s_local); filter(f_spooler); destination(d_spooler); };<br>log { source(s_local); filter(f_local7); destination(d_bootlog); };<br>
log { source(s_local); filter(f_messages); destination(d_messages); };<br><br># Remote logging<br>source s_remote {<br><span class="Apple-tab-span" style="white-space:pre">        </span>tcp(ip(0.0.0.0) port(514));<br><span class="Apple-tab-span" style="white-space:pre">        </span>udp(ip(0.0.0.0) port(514));<br>
};<br>destination d_separatedbyhosts {<br><span class="Apple-tab-span" style="white-space:pre">        </span>file(&quot;/var/log/syslog-ng/$HOST/messages&quot; owner(&quot;root&quot;) group(&quot;root&quot;) perm(0640) dir_perm(0750) create_dirs(yes));<br>
};<br>log { source(s_remote); destination(d_separatedbyhosts); };<br><br><br>#MongoDB<br> destination d_mongodb {<br>    mongodb(<br>      host(&quot;127.0.0.1&quot;)<br>      port(27017)<br>      database(&quot;syslog-ng&quot;)<br>
      collection(&quot;logs&quot;)<br>      keys(&quot;date&quot;, &quot;facility&quot;, &quot;level&quot;, &quot;host&quot;, &quot;program&quot;, &quot;pid&quot;, &quot;message&quot;)<br>      values(&quot;${R_YEAR}-${R_MONTH}-${R_DAY}<br>
${R_HOUR}:${R_MIN}:${R_SEC}&quot;, &quot;$FACILITY&quot;, &quot;$LEVEL&quot;, &quot;$HOST&quot;,&quot;$PROGRAM&quot;,<br>&quot;$PID&quot;, &quot;$MSGONLY&quot;)<br>    );<br>  };<br>log { source(s_local); destination(d_mongodb); };<br>
</blockquote></div><div> <br clear="all"><br></div><div>In the modules.conf I try to add @afmongodb but this isn&#39;t change the situation.</div><div><br></div><div>What&#39;s wrong?</div><div>-- <br>Viacheslav Biriukov<br>
BR<br><div><a href="http://biriukov.com" target="_blank">http://biriukov.com</a></div><br>
</div>