<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">No change in behavior with syslog-ng 3.3.9. It seems like there's one last packet sent from the direct server that we don't get from the ELBs:<div><br></div><div><blockquote type="cite"><br></blockquote><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><blockquote type="cite">21:15:53.039492 IP ELB.com.rfe &gt;&nbsp;<a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], ack 3765, win 191, length 0</blockquote><div><br></div></div></blockquote><div><br></div>(forgive me for using <a href="http://ELB.com">ELB.com</a> as the endpoint name in the second dump below... that was a mistake, its not an ELB)<br><div><br><div><div>On May 7, 2013, at 2:17 PM, Matt Wise &lt;<a href="mailto:matt@nextdoor.com">matt@nextdoor.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Here's the dump THROUGH the ELB:<div><br></div><div><blockquote type="cite">21:11:26.208951 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [S], seq 267618391, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0</blockquote><blockquote type="cite">21:11:26.290452 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [S.], seq 848900027, ack 267618392, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 8], length 0</blockquote><blockquote type="cite">21:11:26.290509 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 1, win 115, length 0</blockquote><blockquote type="cite">21:11:26.291460 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [P.], seq 1:227, ack 1, win 115, length 226</blockquote><blockquote type="cite">21:11:26.375765 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [.], ack 227, win 62, length 0</blockquote><blockquote type="cite">21:11:26.401850 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [.], seq 1:1461, ack 227, win 62, length 1460</blockquote><blockquote type="cite">21:11:26.401871 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [.], seq 1461:2921, ack 227, win 62, length 1460</blockquote><blockquote type="cite">21:11:26.401898 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [P.], seq 2921:3515, ack 227, win 62, length 594</blockquote><blockquote type="cite">21:11:26.402343 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 1461, win 137, length 0</blockquote><blockquote type="cite">21:11:26.402356 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 2921, win 160, length 0</blockquote><blockquote type="cite">21:11:26.402361 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 3515, win 183, length 0</blockquote><blockquote type="cite">21:11:26.484345 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], seq 227:3147, ack 3515, win 183, length 2920</blockquote><blockquote type="cite">21:11:26.484365 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [P.], seq 3147:3690, ack 3515, win 183, length 543</blockquote><blockquote type="cite">21:11:26.566175 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [.], ack 3147, win 85, length 0&nbsp;</blockquote><blockquote type="cite">21:11:26.569031 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [.], seq 3515:4975, ack 3690, win 96, length 1460</blockquote><blockquote type="cite">21:11:26.569046 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [P.], seq 4975:5221, ack 3690, win 96, length 246</blockquote><blockquote type="cite">21:11:26.569222 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 4975, win 206, length 0</blockquote><blockquote type="cite">21:11:26.569234 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 5221, win 229, length 0</blockquote><blockquote type="cite">21:11:28.478081 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [P.], seq 3690:3727, ack 5221, win 229, length 37</blockquote><blockquote type="cite">21:11:28.603557 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [.], ack 3727, win 96, length 0&nbsp;</blockquote><blockquote type="cite">21:11:50.707433 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [P.], seq 5221:5258, ack 3727, win 96, length 37</blockquote><blockquote type="cite">21:11:50.707460 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 5258, win 229, length 0</blockquote><blockquote type="cite">21:11:50.707577 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [P.], seq 3727:3764, ack 5258, win 229, length 37</blockquote><blockquote type="cite">21:11:50.707599 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [F.], seq 3764, ack 5258, win 229, length 0</blockquote><blockquote type="cite">21:11:50.789084 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [.], ack 3764, win 96, length 0&nbsp;</blockquote><blockquote type="cite">21:11:50.789847 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414: Flags [F.], seq 5258, ack 3765, win 96, length 0</blockquote><blockquote type="cite">21:11:50.789868 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.43414 &gt; ELB.com.rfe: Flags [.], ack 5259, win 229, length 0</blockquote><div><br></div><div>Here's a direct connection:</div><div><br></div><div><blockquote type="cite">21:15:14.495542 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [S], seq 379756253, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0</blockquote><blockquote type="cite">21:15:14.576380 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [S.], seq 521570022, ack 379756254, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0</blockquote><blockquote type="cite">21:15:14.576409 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 1, win 115, length 0</blockquote><blockquote type="cite">21:15:14.576940 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [P.], seq 1:227, ack 1, win 115, length 226</blockquote><blockquote type="cite">21:15:14.657397 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], ack 227, win 123, length 0</blockquote><blockquote type="cite">21:15:14.683465 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], seq 1:1461, ack 227, win 123, length 1460</blockquote><blockquote type="cite">21:15:14.683481 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], seq 1461:2921, ack 227, win 123, length 1460</blockquote><blockquote type="cite">21:15:14.683485 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [P.], seq 2921:3515, ack 227, win 123, length 594</blockquote><blockquote type="cite">21:15:14.683683 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 1461, win 137, length 0</blockquote><blockquote type="cite">21:15:14.683696 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 2921, win 160, length 0</blockquote><blockquote type="cite">21:15:14.683702 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 3515, win 183, length 0</blockquote><blockquote type="cite">21:15:14.766227 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], seq 227:3147, ack 3515, win 183, length 2920</blockquote><blockquote type="cite">21:15:14.766243 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [P.], seq 3147:3690, ack 3515, win 183, length 543</blockquote><blockquote type="cite">21:15:14.846942 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], ack 3147, win 169, length 0</blockquote><blockquote type="cite">21:15:14.849068 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], seq 3515:4975, ack 3690, win 191, length 1460</blockquote><blockquote type="cite">21:15:14.849082 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [P.], seq 4975:5221, ack 3690, win 191, length 246</blockquote><blockquote type="cite">21:15:14.849251 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 4975, win 206, length 0</blockquote><blockquote type="cite">21:15:14.849262 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 5221, win 229, length 0</blockquote><blockquote type="cite">21:15:18.394716 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [P.], seq 3690:3727, ack 5221, win 229, length 37</blockquote><blockquote type="cite">21:15:18.511442 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], ack 3727, win 191, length 0</blockquote><blockquote type="cite">21:15:52.957532 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [P.], seq 5221:5258, ack 3727, win 191, length 37</blockquote><blockquote type="cite">21:15:52.957587 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 5258, win 229, length 0</blockquote><blockquote type="cite">21:15:52.957716 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [P.], seq 3727:3764, ack 5258, win 229, length 37</blockquote><blockquote type="cite">21:15:52.957742 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [F.], seq 3764, ack 5258, win 229, length 0</blockquote><blockquote type="cite">21:15:53.039203 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], ack 3764, win 191, length 0</blockquote><blockquote type="cite">21:15:53.039468 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [F.], seq 5258, ack 3764, win 191, length 0</blockquote><blockquote type="cite">21:15:53.039484 IP <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497 &gt; ELB.com.rfe: Flags [.], ack 5259, win 229, length 0</blockquote><blockquote type="cite">21:15:53.039492 IP ELB.com.rfe &gt; <a href="http://client.foo.com/">CLIENT.foo.com</a>.18497: Flags [.], ack 3765, win 191, length 0</blockquote></div><div><br></div></div></div></blockquote><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Any thoughts? By the way, I'm trying out 3.3.9, but running into other issues..</div><div><br></div><div><div>On May 7, 2013, at 1:55 PM, Balazs Scheidler &lt;<a href="mailto:bazsi77@gmail.com">bazsi77@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p dir="ltr"><br>
On May 7, 2013 10:51 PM, "Matt Wise" &lt;<a href="mailto:matt@nextdoor.com">matt@nextdoor.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I've done some more testing and now have narrowed the problem down to our Amazon ELB. Because the OSS version of Syslog-ng does not support failing over destinations from hostA to hostB when one fails, we are using an ELB in front of our syslog servers.<br>

&gt;<br>
&gt; When we have no ELB in place, our syslog-ng client detects the network drop immediately and begins to try to reconnect. When the ELB is in the way, it never detects the network connection drop. I don't understand why. I've tested a bit manually using openssl to connect to our remote endpoint through the ELB and directly and I don't see any difference in the way network connections are killed off. Any thoughts here?<br>

&gt;<br></p><p dir="ltr">Hmm interesting. The difference might be how connections are terminated. Can you check that using tcpdump?</p><p dir="ltr">&gt; --matt<br>
&gt;<br>
&gt; On May 6, 2013, at 9:53 AM, Matt Wise &lt;<a href="mailto:matt@nextdoor.com">matt@nextdoor.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; We're running Syslog-NG 3.3.4 in our mixed Ubuntu 10/12 environment. We use SSL for all of our syslog-to-syslog connections, and have logging going to two different data pipelines.<br>
&gt; &gt;<br>
&gt; &gt; &nbsp;Data Dest #1: SyslogNG Client ----(SSL)----&gt; SyslogNG Server ------&gt; Logstash File-read-in-service<br>
&gt; &gt; &nbsp;Data Dest #2: SyslogNG Client ----(SSL)----&gt; Stunnel Service ------&gt; Flume Syslog Service<br>
&gt; &gt;<br>
&gt; &gt; The data streams work fine most of the time, but if we restart either the remote syslog-ng server, or the stunnel service, it seems that the syslog ng clients don't try to reconnect for a LONG time (or ever) to the endpoints again. I end up seeing the connection on the client go into a CLOSE_WAIT state, and syslog-ng keeps thinking that its sending log events through the connection, so it seems to never try to reconnect.<br>

&gt; &gt;<br>
&gt; &gt; I've tried setting time_reopen() to 0, 1 and 5... no luck or change in behavior.<br>
&gt; &gt;<br>
&gt; &gt; Any thoughts?<br>
&gt; &gt;<br>
&gt; &gt; --Matt<br>
&gt; &gt;<br>
&gt;<br>
&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
&gt;<br>
</p>
______________________________________________________________________________<br>Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a><br><br></blockquote></div><br></div></div></blockquote></div><br></div></div></body></html>