syslog-ng 3.4.0alpha2 failed to start using ipv6 address.
I tried to make syslog-ng listening on ipv6 network interface, but it failed to start. Can anyone help me? my syslog-ng version is: syslog-ng 3.4.0alpha2 /localdisk/syslog-ng-3.4.0alpha2>syslog-ng WARNING: Configuration file format is too old, please update it to use the 3.4 format as some constructs might operate inefficiently; Error resolving hostname; host='fdfb:8edf:1466::191' Error initializing message pipeline; My simple config file is: I already put the line below at /etc/hosts file: fdfb:8edf:1466::191 iclab098v6 iclab098v6.ic.intel.com ================== @version: 3.3 @include "scl.conf" options { use_dns(persist_only); dns_cache_hosts(/etc/hosts); }; source s_local { system(); internal(); }; source s_network { udp(ip(10.230.34.191) port(514)); tcp(ip('fdfb:8edf:1466::191') port(514)); }; destination d_local { file("/var/log/syslogmessages"); }; log { source(s_local); source(s_network); destination(d_local); };
My bad. The config file is not right, for ipv6, it should be: tcp6(ip('fdfb:8edf:1466::191') port(514)); instead of: tcp(ip('fdfb:8edf:1466::191') port(514)); After the change, it is listening on ipv6 interface. On Wed, Aug 22, 2012 at 12:10 PM, huican ping <pinghuican@gmail.com> wrote:
I tried to make syslog-ng listening on ipv6 network interface, but it failed to start. Can anyone help me?
my syslog-ng version is: syslog-ng 3.4.0alpha2
/localdisk/syslog-ng-3.4.0alpha2>syslog-ng WARNING: Configuration file format is too old, please update it to use the 3.4 format as some constructs might operate inefficiently; Error resolving hostname; host='fdfb:8edf:1466::191' Error initializing message pipeline;
My simple config file is: I already put the line below at /etc/hosts file: fdfb:8edf:1466::191 iclab098v6 iclab098v6.ic.intel.com
================== @version: 3.3 @include "scl.conf"
options { use_dns(persist_only); dns_cache_hosts(/etc/hosts); };
source s_local { system(); internal(); };
source s_network { udp(ip(10.230.34.191) port(514)); tcp(ip('fdfb:8edf:1466::191') port(514)); };
destination d_local { file("/var/log/syslogmessages"); };
log { source(s_local); source(s_network); destination(d_local); };
participants (1)
-
huican ping