I am trying to build a pipeline based on this tutorial where Kafka reads from a file with a File Source connector. Using these Docker images for the Elastic Stack, I want to register Logstash as a consumer for the "quickstart-data" topic but I have failed for the moment.
Here is my logstash.conf file:
input {
kafka {
bootstrap_servers => 'localhost:9092'
topics => 'quickstart-data'
}
}
output {
elasticsearch {
hosts => [ 'elasticsearch']
user => 'elastic'
password => 'changeme'
}
stdout {}
}
The connection to Elasticsearch works because I tested it with a heartbeat input. The message error I get is the following: Connection to node -1 could not be established. Broker may not be available. Give up sending metadata request since no node is available
Any ideas?