You are not logged in.

#1 2007-06-26 16:52:57

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

syslog-ng Number of allowed concurrent connections exceeded:Solved!

For some reason the normal syslog-ng.conf file contains a section like this:

source src {
  unix-stream("/dev/log");
  internal();
  pipe("/proc/kmsg");
};

Which can result in the error is you have a busy server on Syslog-ng 2.04 and above.


Modifying that section to read lik this:

source src {
  unix-stream("/dev/log" max-connections(20));
  internal();
  pipe("/proc/kmsg");
};

Fixes the problem


I hope that helps people.


Kind regards

Benedict White

Offline

#2 2007-07-12 03:30:51

ramiblanco
Member
Registered: 2007-03-23
Posts: 8

Re: syslog-ng Number of allowed concurrent connections exceeded:Solved!

thank you so much, i couldn't find what was wrong. now, i dont quite understand: what do you mean with "if you have a busy server"
what are those 10 connections?

Offline

#3 2007-07-12 08:08:56

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: syslog-ng Number of allowed concurrent connections exceeded:Solved!

This is the number of applications that print to the syslog simultaneously. Although the option makes sense, the default value (10) is too low for virtually everyone.

Offline

#4 2007-07-13 02:55:26

ramiblanco
Member
Registered: 2007-03-23
Posts: 8

Re: syslog-ng Number of allowed concurrent connections exceeded:Solved!

ok, i get it now. once more, thank you .

Offline

#5 2013-07-27 08:34:33

edrusb
Member
Registered: 2013-07-27
Posts: 1

Re: syslog-ng Number of allowed concurrent connections exceeded:Solved!

Hello,

for those that like me met the same error but for TCP sources while not having more than 10 remote hosts over the network, a better solution is to activate the so_keepalive on the syslog-ng server, to avoid having 2, 3 or more opened sockets to a given host, one been created after each host reboot or the like:

source s_lan {
     tcp(ip(1.2.3.4)
         port(514)
         so_keepalive(yes)
     );                                                                                                     
};                                                                                                                           

I just do not understand why so_keepalive is not activated by default, as it really makes sens to have it on any TCP sessions!
Of course, if you have more than 10 hosts you can both use so_keepalive and tune max-connections

source s_lan {
     tcp(ip(1.2.3.4)
         port(514)
         max-connections(50)
         so_keepalive(yes)
     );                                                                                                     
};                                                                                                                           

Cheers,
Edrusb.

Offline

Board footer

Powered by FluxBB