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

simonst at wellsfargo.com simonst at wellsfargo.com
Fri Mar 30 19:10:45 CEST 2007


Localip() and localport() parms still causing a syntax error, after
straightening out semicolons (thanks to Evan Rempel).

# syslog-ng -V
syslog-ng 2.0.2

# cat -n syslog-ng.test                  #Show syslog-ng.test without
localip() & localport() 
     1  options { long_hostnames(off); sync(0); };
     2  source src { unix-stream("/dev/log"); internal(); };
     3  source kernsrc { file("/proc/kmsg"); };
     4  destination logger { tcp("10.11.12.13" port(5678)
template("$UNIXTIME $HOST $MESSAGE\n") ); };
     5  log { source(src); source(kernsrc); destination(logger); };
# syslog-ng -dFsf syslog-ng.test         # No syntax error without localip()
& localport()


# cat -n syslog-ng.test                  #Add localip() & localport() to
syslog-ng.test
     1  options { long_hostnames(off); sync(0); };
     2  source src { unix-stream("/dev/log"); internal(); };
     3  source kernsrc { file("/proc/kmsg"); };
     4  destination logger { tcp("10.11.12.13" port(5678) localip(10.9.8.7)
localport(5678) template("$UNIXTIME $HOST $MESSAGE\n") ); };
     5  log { source(src); source(kernsrc); destination(logger); };
# syslog-ng -dFsf syslog-ng.test          
syntax error at 4                        # SYNTAX ERROR with localip() &
localport() 



-------------- 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/20070330/54653721/smime.bin


More information about the syslog-ng mailing list