<div dir="ltr">Hi, <div><br></div><div>Use the username() and password() options.</div><div><br></div><div><a href="https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/reference-destination-mongodb.html">https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/reference-destination-mongodb.html</a><br></div><div><br></div><div>Regards, </div><div><br></div><div>Robert</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 13, 2016 at 11:15 AM, Ivan Adji - Krstev <span dir="ltr">&lt;<a href="mailto:akivanradix@gmail.com" target="_blank">akivanradix@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <font face="Helvetica, Arial, sans-serif">Hi all, <br>
      I have configure MongoDB with Username and Password, but can&#39;t
      find how to configure destination on Syslog-ng using MongoDB with
      Username and Password.<br>
      <br>
      For now i have just this:<br>
      <br>
      destination d_mongodb {<br>
              mongodb(<br>
              servers(&quot;localhost:27017&quot;)<br>
              database(&quot;syslog&quot;)<br>
              collection(&quot;messages&quot;)<br>
              value-pairs(<br>
              scope(&quot;selected-macros&quot; &quot;nv-pairs&quot; &quot;sdata&quot;)<br>
                      )<br>
                              );<br>
                              };<br>
      <br>
      But i should add some username and passwords somewhere and don&#39;t
      know how. Any hints on this ?<br>
      <br>
      Kind regards<span class="HOEnZb"><font color="#888888"><br>
      Ivan <br>
    </font></span></font>
  </div>

<br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>