[syslog-ng] syslog-ng tcp port "max-connections(#)" directive?
Markus Warg
markus@mail.du.gtn.com
Tue, 20 Jun 2000 08:47:05 +0200
Robert,
On Mon, 19 Jun 2000, Robert Coli wrote:
> Hello. I am attempting to have multiple hosts log to syslog-ng on a
> centralized host via tcp. This is the line from my config file on the
> logging host :
>
> ---
> source remote { tcp(port(<port #>)); max-connections(50) };
> ---
>
> This does not seem to be a valid syntax for a tcp remote source. In
> fact, syslog-ng will not start unless I remove the "max-connections(#)"
> part of that line.
>
> The only notes in the docs wrt this directive is here :
>
> ---
> source s_tcp { tcp(ip(127.0.0.1) port(1999); max-connections(10)); };
> ---
Well, seems that max-connections belongs to the tcp-statement, so
you set a closing brace wrong, try:
source remote { tcp(port(<port #>); max-connections(50)); };
^ ^^
I have not tried this out, but it should be easy to test.
Markus
--
VIA NET.WORKS Deutschland GmbH m.warg@via-net-works.de
Bismarckstr. 120 www.via-net-works.de fon: +49 203 3093-101
D-47057 Duisburg Deutsches Provider Network fax: +49 203 3093-112