Hello,
I am having problems to make the Logstash docker working as consumer with a kafka input. I can see the tcp socket in the zookeeper node but
I can't get any data in the consumer.
When I look the consumer (offset -1 ?):
Partition LogSize Consumer Offset Lag Consumer Instance Owner
0 136314 -1 136315 logstash_docker_06148a3f844e-1472116989973-2eea36d3-0
I've just one topic in one partition with 3 kafka/zookeeper cluster nodes.
Thats is my logstash conf:
input {
kafka {
zk_connect => "10.10.20.31:2181"
topic_id => "topic-events"
add_field => [ "[@metadata][external-event]", "true"]
reset_beginning => true
rebalance_max_retries => 3
rebalance_backoff_ms => 3000
consumer_timeout_ms => 30000
}
}
output {
stdout {
codec => "json"
}
And this is my docker info ps:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
06148a3f844e logstash:2.3.4 "/docker-entrypoint.s" 14 minutes ago Up 13 minutes 0.0.0.0:5043->5043/tcp
I can make telnet to the zookeeper from the docker server and I can "see traffic" using tcpdump.
My Versions running:
Logstash:2.3.4
kafka-input plugin: 2.0.8
Kafka/Zookeeper running: 0.8.2.2 (kafka_2.10-0.8.2.2)
Any ideas?
Thanks very much