Logstash (1.5.3) is not able to connect to kafka

Setting advertised.host.name=kafka in server.properties file solved the issue.