[syslog-ng] unable to figure out syntax error in config file

Ritesh Sood baralachala at gmail.com
Thu Mar 26 15:44:56 CET 2009


On Mar 26, 2009, at 3:59 AM, ILLES, Marton wrote:

> On Wed, 2009-03-25 at 19:59 -0700, Ritesh Sood wrote:
>> I've tried all of the following:
>> 1a) destination d_loghost { syslog(ip"169.237.32.44" keep-alive(yes)
>> localport(1999)); };
>> 1b) destination d_loghost { syslog(ip(169.237.32.44) keep-alive(yes)
>> localport(1999)); };
>>
>> 2a) destination d_loghost { syslog(ip"169.237.32.44" ; keep- 
>> alive(yes)
>> localport(1999)); };
>> 2b) destination d_loghost { syslog(ip(169.237.32.44) ; keep- 
>> alive(yes)
>> localport(1999)); };
>>
>> and other combinations by removing the options keep-alive(yes) and/or
>> localport(1999));
>>
>> However, each time I get a syntax error report.
>
> Try:
>
> destination d_loghost
> {
> 	syslog("169.237.32.44"
> 		keep-alive(yes)
> 		localport(1999)
> 	);
> };
>
> Note: indent is not important, just for better readability.
>
Tell you what, it worked ! Thanks a lot.
What also works is
source s_remote { syslog(ip(169.237.32.44) max-connections(50)); };
some consistency, please.

Ritesh




> M
> -- 
> Key fingerprint = F78C 25CA 5F88 6FAF EA21 779D 3279 9F9E 1155 670D
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>



More information about the syslog-ng mailing list