[syslog-ng] Localport() & localip() cause syntax error

simonst at wellsfargo.com simonst at wellsfargo.com
Thu Mar 29 22:20:08 CEST 2007


My syslog-ng (2.0.2) client works fine with a tcp destination: 

	destination centralLog { tcp("10.11.12.13" port(5432); 
                                   template("$UNIXTIME $HOST $MESSAGE\n");
); };

but gets a syntax error when I add localip() and localport():

	destination centralLog { tcp("10.11.12.13" port(5432); 
                                   localip(10.9.8.7) localport(5432);
                                   template("$UNIXTIME $HOST $MESSAGE\n");
); };

I've tried various combinations of localip() & localport(), and also
semicolons.  
Can anyone see what's wrong?


Here's the entire syslog-ng.conf:

options { long_hostnames(off); sync(0); };
source src { unix-stream("/dev/log"); internal(); };
source kernsrc { file("/proc/kmsg"); };
destination messages {
   file("/var/log/messages.$MON$DAY"
   owner(root) group(abcde) perm(0644));
   };
destination centralLog  { tcp("10.11.12.13"  port(5432) localip("10.9.8.7");
localport(5432);
                                         template("$UNIXTIME $HOST
$MESSAGE\n"); ); };
destination centralLog2 { tcp("10.21.22.23"  port(5432) localip("10.9.8.7")
localport(5432)
                                         template("$UNIXTIME $HOST
$MESSAGE\n") ); };
log { source(src); source(kernsrc); destination(centralLog);
destination(centralLog2);
                                    destination(messages); };
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5621 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070329/19595fb2/smime.bin


More information about the syslog-ng mailing list