I have not enabled explicit commits.  That requires the latest version right?  Also, where do I enable this in the config file?<br><br><div class="gmail_quote">On Thu, Mar 10, 2011 at 1:26 PM, Balazs Scheidler <span dir="ltr">&lt;<a href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Thu, 2011-03-10 at 11:23 -0500, Shawn Cannon wrote:<br>
&gt; Thanks for all the info.  The current method that our firewall<br>
&gt; management program uses to log messages into the current database is<br>
&gt; by multiple open connections to the database.  syslog-ng is making one<br>
&gt; connection and trying to force everything down that one connection.<br>
&gt; So, my question is this:  can syslog-ng be configured to make multiple<br>
&gt; connections to the SQL database to insert the data?  Just so you have<br>
&gt; a comparison, our current product (which changes in the new version<br>
&gt; and why we need a different syslog product) has182 open connections<br>
&gt; open and that is from 8 agents.  It stays up to speen by doing that.<br>
&gt; Thanks....<br>
&gt;<br>
<br>
</div>I somehow doubt that injecting messages via multiple connections would<br>
help the message rate. Did you enable explicit-commits?<br>
<br>
An even more high performance solution is to use batched inserts that<br>
syslog-ng currently doesn&#39;t support with its sql() destination. (e.g.<br>
LOAD FROM FILE and friends).<br>
<div><div></div><div class="h5"><br>
<br>
&gt; On Thu, Mar 10, 2011 at 11:06 AM, Martin Holste &lt;<a href="mailto:mcholste@gmail.com">mcholste@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         Feel free to contradict, but in my experience, if you have<br>
&gt;         more than<br>
&gt;         around 2k messages/second sustained, logging to any database<br>
&gt;         directly<br>
&gt;         puts you at very high risk of message drops.  Flow control and<br>
&gt;         other<br>
&gt;         burst control mechanisms will not help if you have an<br>
&gt;         unsustainable<br>
&gt;         message rate.<br>
&gt;<br>
&gt;<br>
&gt;         On Thu, Mar 10, 2011 at 9:33 AM, John Kristoff &lt;<a href="mailto:jtk@cymru.com">jtk@cymru.com</a>&gt;<br>
&gt;         wrote:<br>
&gt;         &gt; On Thu, 10 Mar 2011 09:21:56 +0100<br>
&gt;         &gt; Zoltán Pallagi &lt;<a href="mailto:pzolee@balabit.hu">pzolee@balabit.hu</a>&gt; wrote:<br>
&gt;         &gt;<br>
&gt;         &gt;&gt; If you use TCP, you can use flags(flow-control) in your<br>
&gt;         server<br>
&gt;         &gt;&gt; configuration. If the senders are also syslog-ng, you can<br>
&gt;         use it on<br>
&gt;         &gt;&gt; their configurations, too.<br>
&gt;         &gt;&gt; flow-control will slow down (or block) receiving logs if<br>
&gt;         syslog-ng<br>
&gt;         &gt;&gt; cannot process (write out, forward and so on) the messages<br>
&gt;         in time.<br>
&gt;         &gt;&gt; It can prevent losing logs.<br>
&gt;         &gt;<br>
&gt;         &gt; The one caveat with this approach seems to be that if you<br>
&gt;         have multiple<br>
&gt;         &gt; destinations, then all destinations will block until the one<br>
&gt;         stalled<br>
&gt;         &gt; destination is free. So for instance if the SQL destination<br>
&gt;         is too<br>
&gt;         &gt; slow, and you&#39;re also logging to a file, using flow-control<br>
&gt;         may cause<br>
&gt;         &gt; the file-based log to lose messages as well.<br>
&gt;         &gt;<br>
&gt;         &gt; John<br>
&gt;         &gt;<br>
&gt;         ______________________________________________________________________________<br>
&gt;         &gt; Member info:<br>
&gt;         <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt;         &gt; Documentation:<br>
&gt;         <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt;         &gt; FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         ______________________________________________________________________________<br>
&gt;         Member info:<br>
&gt;         <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt;         Documentation:<br>
&gt;         <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt;         FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
Bazsi<br>
</font><div><div></div><div class="h5"><br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
</div></div></blockquote></div><br>