{"id":336,"date":"2012-08-10T13:09:44","date_gmt":"2012-08-10T11:09:44","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=336"},"modified":"2012-08-10T13:11:14","modified_gmt":"2012-08-10T11:11:14","slug":"syslog-ng-number-of-allowed-concurrent-connections-reached-rejecting-connection","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/syslog-ng-number-of-allowed-concurrent-connections-reached-rejecting-connection\/","title":{"rendered":"syslog-ng:  Number of allowed concurrent connections reached, rejecting connection"},"content":{"rendered":"<p>I have configured <strong>syslog-ng<\/strong> as a log server for all of the servers in my network and I noticed that when the number of servers in the network grew, some of them failed to send log messages to the log server. I found this warnings on my log server:<\/p>\n<pre class=\"donquote prettyprint\">\r\nsyslog-ng[16834]: Number of allowed concurrent connections reached, rejecting connection; client=&#039;AF_INET( X.X.X.X:48236)&#039;, local=&#039;AF_INET(0.0.0.0:514)&#039;, max=&#039;10&#039;\r\n<\/pre>\n<p>By default the number of concurrent connections is 10, to solve the problem I&#8217;ve increased the number of concurrent connections in source secction in \/etc\/syslog-ng\/syslog-ng.conf file:<\/p>\n<pre class=\"prettyprint\">source network {\r\n        udp(ip(0.0.0.0) port(514));\r\n        tcp(ip(0.0.0.0) port(514)  max-connections(50) );\r\n};\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have configured syslog-ng as a log server for all of the servers in my network and I noticed that when the number of servers in the network grew, some of them failed to send log messages to the log server. I found this warnings on my log server: syslog-ng[16834]: Number of allowed concurrent connections [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[42,41,40],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/336"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=336"}],"version-history":[{"count":16,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":352,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/336\/revisions\/352"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}