[rsyslog-notify] Forum Thread: Re: omkafka only wants to publish to localhost:9092 - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Tue Jun 14 21:36:36 CEST 2016
User: sfcloudman
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26597#p26597
Message:
----------
Ok, I finally figured this out. Maybe this will help others using rsyslog
with omkafka.
The kafka brokers have a server.properties files that is the configuration
per broker.
In server.properties there is a parameter called advertised.listeners:
# Hostname and port the broker will advertise to producers and consumers.
If not set,
# it uses the value for "listeners" if configured. Otherwise, it will use
the value
# returned from java.net.InetAddress.getCanonicalHostName().
advertised.listeners=PLAINTEXT://kafka-1:9092
By default this is commented out so you get what ever the
CanonicalHostName() returns.
When rsyslog loads the omkafka module it connects to the host in the
brokers =['hostname:9092'] config but the advertised listeners returns a
different host , if not properly configured, which will force subsequent
connects from omkafka to fail.
This is NOT a rsyslog bug like I thought in my previous post.
More information about the rsyslog-notify
mailing list