I have single node kafka running on my server machine. I used following command to create topic "bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test". I have two logstash instances running. First one reads data from some java application log file inject the same to the kafka. It works fine, I can see data in kafka on console using "bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning" command. But the other logstash instance which reads from kafka(same topic "test") and injects into elasicsearch, is failing. This second instance of logstash fails to read data. I changed its configuration file to read from kafka and print on console, then also it does not output anything.Here is the config file for failing logstash:
// config file
input {
kafka {
zk_connect => "localhost:2181"
topic_id => "test"
}
}
output {
stdout{}
}
Logstash neither print anything nor it throws any error. I am using Logstash 2.4 and kafka 0.10. I used kafka quick start guide (http://kafka.apache.org/documentation.html#quickstart)