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

ILLES, Marton illes.marton at balabit.hu
Thu Mar 26 11:59:51 CET 2009


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.

M
-- 
Key fingerprint = F78C 25CA 5F88 6FAF EA21 779D 3279 9F9E 1155 670D




More information about the syslog-ng mailing list